You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you test data[0].qubits? Hopefully the type of that is still tuple. Even so, we should fix this.
Fwiw, treated CircuitInstruction as a 3-tuple with list elements (rather than using the attribute accessors) is a legacy backwards-compatible behaviour that comes with a runtime penalty. It was added during the switch of the type of the circuit data 2 years ago. We probably should have deprecated and removed it for 1.0, but forgot.
Either way, the type shouldn't have changed while it is supported,band we can get that fixed.
Environment
What is happening?
CircuitInstruction qarg type is suddenly changed.
This can cause problem in unittest if one is testing instruction qubits without typecast.
How can we reproduce the issue?
See above screenshot
What should happen?
Data type must be preserved, or change must be mentioned in the release note
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: