Sakibul Islam Rayhan
Sakibul Islam Rayhan

Reputation: 11

Errors when using MCMT to create a multi control cz gate and trying to measure

Multi control cz gate:

multi control cz gate

The error is saying that:

[Experiment 0] Circuit mcmt contains invalid instructions {"gates": {ccz}} for "statevector" method. , ERROR: Circuit mcmt contains invalid instructions {"gates": {ccz}} for "statevector" method.'

Upvotes: 0

Views: 323

Answers (1)

Sakibul Islam Rayhan
Sakibul Islam Rayhan

Reputation: 11

I get the answer later ... if we use Multi control cz gate then we need to call the transpiler and then transpile it like this

from qiskit import transpile
t_qc = transpile(qc, sim) # sim = simulation

Upvotes: 1

Related Questions