More efficient QASM3 dumping of global barriers #13485
Labels
good first issue
Good for newcomers
mod: qasm3
Related to OpenQASM 3 import or export
type: feature request
New feature or request
Milestone
What should we add?
Qiskit let's the user use global barriers in a circuit, for example:
However, when these barriers get dumped into QASM3, all qubits are explicitly listed:
While this is a valid QASM3 output, it doesn't use the declared support of global barriers in QASM3 via
barrier;
. For wide circuits this increases the output's size, parsing time, and even compile time down the line (as the global nature of the barrier needs to be checked for, or ignored).The text was updated successfully, but these errors were encountered: