Qiskit/qiskit-ibm-provider

`canonicalize_control_flow` will be removed in Qiskit 1.0

kt474 opened this issue · 2 comments

We use canonicalize_control_flow in our transpiler tests here but it is being removed in Qiskit 1.0 (see Qiskit PR )

Can this be replaced with QuantumCircuit.__eq__?

@taalexander @dieris

I think we need some input from @jakelishman, this was originally needed to make sure eq evaluated correctly

Kevin asked me offline before this - since Qiskit/qiskit#10367, QuantumCircuit.__eq__ should have been doing all the necessary canonicalisation within itself, so (in theory) it should work to remove the explicit call.