qib.operator.control_instructions.DelayInstruction¶
- class qib.operator.control_instructions.DelayInstruction(duration: int, qubits: Sequence[Qubit] = [])[source]¶
Bases:
ControlInstructionA delay instruction for a quantum circuit.
The delay instruction specifies a waiting period for qubits, pausing execution for a defined duration to control the timing of quantum operations.
Methods
Instructions in quantum circuits do not have a sparse matrix representation, because they are not quantum operations that act on the state of qubits.
Generate a Qobj OpenQASM representation of the instruction.
List of all fields appearing in the instruction.
A control instruction is never Hermitian.
A control instruction is never unitary.
Apply the instruction on the specified qubits.
Return the list of quantum particles the instruction is applied on.
Attributes
Get the duration of the delay instruction, in dt (differential element of time).
The number of "wires" (or quantum particles) this instruction is applied on.
- as_matrix()[source]¶
Instructions in quantum circuits do not have a sparse matrix representation, because they are not quantum operations that act on the state of qubits. Instead, these instructions serve as control directives within a quantum circuit.
- property duration¶
Get the duration of the delay instruction, in dt (differential element of time).
- property num_wires¶
The number of “wires” (or quantum particles) this instruction is applied on.