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

265 views Asked by At

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.'

1

There are 1 answers

0
Sakibul Islam Rayhan On

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