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
The AST for DelayInstruction and QuantumBarrier defines a qubits attribute, but in oqpy we also use them for frames so the attribute naming is misleading. The typing is not an issue here.
@dataclass
class DelayInstruction(QuantumStatement):
"""
Delay instruction
Example::
delay[start_stretch] $0;
"""
duration: Expression
qubits: List[Union[IndexedIdentifier, Identifier]]
@dataclass
class QuantumBarrier(QuantumStatement):
"""
A quantum barrier instruction
Example::
barrier q;
"""
qubits: List[Expression]
The text was updated successfully, but these errors were encountered:
This PR already makes the change to the variable name in Program.delay() and Program.barrier() from qubits to qubits_or_frames. If that is sufficient, we can close this issue.
stephteo
changed the title
OpenQASM AST for DelayInstruction qubits attribute name is misleading
OpenQASM AST for DelayInstruction/QuantumBarrier qubits attribute name is misleading
Sep 29, 2022
The AST for
DelayInstruction
andQuantumBarrier
defines aqubits
attribute, but in oqpy we also use them forframes
so the attribute naming is misleading. The typing is not an issue here.The text was updated successfully, but these errors were encountered: