Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    $\begingroup$ You can define $R_y(\pi/2)$ as a custom gate, then follow the method described here: quantumcomputing.stackexchange.com/a/17861/9474 $\endgroup$ Commented Dec 22, 2021 at 8:37
  • $\begingroup$ Thanks. But I cannot find the code corresponds to StandardEquivalenceLibrary.add_equivalence(CXGate(), mycx_def). StandardEquivalenceLibrary seems not exist. $\endgroup$ Commented Dec 22, 2021 at 8:49
  • $\begingroup$ from qiskit.circuit.library.standard_gates.equivalence_library import StandardEquivalenceLibrary $\endgroup$ Commented Dec 22, 2021 at 9:14
  • $\begingroup$ I follow the steps but it raise a circuit error. $\endgroup$ Commented Dec 22, 2021 at 10:25
  • $\begingroup$ @Inm do you need to just transpile to a circuit with that basis, or then actually compile it to be executed on a machine? $\endgroup$ Commented Jan 4, 2022 at 4:10