spin_pulse.transpilation.instructions.pulse_instruction

Instruction representation used in pulse level description of a circuit.

Classes

PulseInstruction

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:

str

- qubits

List of qubits on which the instruction acts.

Type:

list[qiskit.circuit.Qubit]

- num_qubits

Number of qubits targeted by the instruction.

Type:

int

- duration

Duration of the instruction in time steps.

Type:

int

Initialize a pulse instruction acting on the given qubits.

Parameters:
  • qubits (list[qiskit.circuit.Qubit]) – List of qubits on which the instruction is applied.

  • duration (int) – Duration of the instruction in time steps. Default is 1.

Returns:

The configured instruction is stored in the created object.

Return type:

None

name = '_name'[source]
qubits[source]
num_qubits[source]
duration = 1[source]