qib.operator.control_instructions.DelayInstruction

class qib.operator.control_instructions.DelayInstruction(duration: int, qubits: Sequence[Qubit] = [])[source]

Bases: ControlInstruction

A 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

as_matrix

Instructions in quantum circuits do not have a sparse matrix representation, because they are not quantum operations that act on the state of qubits.

as_qasm

Generate a Qobj OpenQASM representation of the instruction.

fields

List of all fields appearing in the instruction.

is_hermitian

A control instruction is never Hermitian.

is_unitary

A control instruction is never unitary.

on

Apply the instruction on the specified qubits.

particles

Return the list of quantum particles the instruction is applied on.

Attributes

duration

Get the duration of the delay instruction, in dt (differential element of time).

num_wires

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.

as_qasm()[source]

Generate a Qobj OpenQASM representation of the instruction.

property duration

Get the duration of the delay instruction, in dt (differential element of time).

fields()[source]

List of all fields appearing in the instruction.

is_hermitian()[source]

A control instruction is never Hermitian.

is_unitary()[source]

A control instruction is never unitary.

property num_wires

The number of “wires” (or quantum particles) this instruction is applied on.

on(qubits: Sequence[Qubit] | None = None)[source]

Apply the instruction on the specified qubits.

particles()[source]

Return the list of quantum particles the instruction is applied on.