autoqasm.instructions.instructions module
Non-unitary instructions that apply to qubits.
- autoqasm.instructions.instructions.reset(target: int | str | Qubit | _ClassicalVar | OQPyExpression | Qubit) None[source]
Adds a reset instruction on a specified qubit.
- Parameters:
target (QubitIdentifierType) – The target qubit.
- autoqasm.instructions.instructions.barrier(qubits: int | str | Qubit | _ClassicalVar | OQPyExpression | Qubit | Iterable[int | str | Qubit | _ClassicalVar | OQPyExpression | Qubit] | None = None) None[source]
Adds a barrier compiler directive on the specified qubits. If
qubitsis None, the barrier applies to all qubits in the program.- Parameters:
qubits (QubitIdentifierType | Iterable[QubitIdentifierType] | None) – The target qubits. If None, the barrier applies to all qubits in the program. Default is None.