spin_pulse.transpilation.instructions.pulse_instruction¶
Instruction representation used in pulse level description of a circuit.
Classes¶
Base class representing a pulse-level instruction applied to qubits. |
Module Contents¶
- class spin_pulse.transpilation.instructions.pulse_instruction.PulseInstruction(qubits, duration=1)[source]¶
Base class representing a pulse-level instruction applied to qubits.
This class defines the common interface for all pulse instructions, including rotation pulses and idle periods. Each instruction targets one or more qubits and spans a given discrete duration. Subclasses extend this class to implement specific pulse behaviors.
- - name
Name identifying the type of pulse instruction.
- Type:
- - qubits
List of qubits on which the instruction acts.
- Type:
list[qiskit.circuit.Qubit]
- - num_qubits
Number of qubits targeted by the instruction.
- Type:
- - duration
Duration of the instruction in time steps.
- Type:
Initialize a pulse instruction acting on the given qubits.
- Parameters:
- Returns:
The configured instruction is stored in the created object.
- Return type:
None