2

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

Christian
  • 4,902
  • 4
  • 24
  • 42
  • Interesting but unclear where the error occurs. Using qiskit? Have you found the answer at https://qiskit.org/documentation/stubs/qiskit.compiler.transpile.html? – Christian Sep 16 '22 at 00:55
  • 1
    yes kind of I was doing a project so there I got this problem then I used transpiler and then it worked – Sakibul Islam Rayhan Sep 16 '22 at 01:00

1 Answers1

1

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