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
nonhermitian
changed the title
measure_active returns register called "measure" which breaks round trippinmg in QASM
measure_active returns register called "measure" which breaks round tripping in QASM
May 5, 2024
We can certainly change the default here, but just to be really clear: neither OpenQASM 2 nor OpenQASM 3 will ever be lossless serialisation formats for Qiskit, and to large part, cannot be without severely limiting the Qiskit data model, or requiring us to make huge amount of fragile guesses on re-import. We'll interoperate with them, but export to OpenQASM 3 is very much an export, and there's all sorts of things we have to do to map Qiskit's data model to OpenQASM's and back again. For example, the request in #12014, if it were implemented, could not be roundtripped through OQ because it's a naming conflict.
(The point being: "should be able to [losslessly] roundtrip a circuit" is not something the OQ import/export will ever be able to fully achieve.)
Environment
What is happening?
[ClassicalRegister(1, 'measure')]
[ClassicalRegister(1, 'esc__measure')]
How can we reproduce the issue?
run above
What should happen?
should be able to round trip a circuit
Any suggestions?
Unify the register name of
measure_active
andmeasure_all
perhaps?The text was updated successfully, but these errors were encountered: