qoolqit.drive
source module qoolqit.drive
Classes
-
WeightedDetuning — A weighted detuning.
-
Drive — The drive Hamiltonian acting over a duration.
source dataclass WeightedDetuning(weights: dict[Any, float], waveform: Waveform)
A weighted detuning.
See https://pasqal-io.github.io/qoolqit/latest/theory/rydberg_model/#weighted-detuning for details on weighted detunings.
Note: detuning with positive waveforms cannot be instantiated.
Attributes
-
weights : dict[Any, float] — Association of weights to qubits.
-
waveform : Waveform — The waveform for this detuning.
source class Drive(*args: Any, amplitude: Waveform | None = None, detuning: Waveform | None = None, weighted_detunings: list[WeightedDetuning] | None = None, phase: float = 0.0)
The drive Hamiltonian acting over a duration.
Default constructor for the Drive.
Must be instantiated with keyword arguments. Accepts either an amplitude waveform, a detuning waveform, or both. A phase value can also be passed.
Parameters
-
amplitude : Waveform | None — waveform representing Ω(t) in the drive Hamiltonian.
-
detuning : Waveform | None — waveform representing δ(t) in the drive Hamiltonian.
-
phase : float — phase value ɸ for the amplitude term.
-
weighted_detunings : list[WeightedDetuning] | None — additional waveforms and weights applied to individual qubits. Note that these detunings are not supported on all devices.
Attributes
-
amplitude : Waveform — The amplitude waveform in the drive.
-
detuning : Waveform — The detuning waveform in the drive.
-
weighted_detunings : Sequence[WeightedDetuning] — Detunings applied to individual qubits.
-
phase : float — The phase value in the drive.
Methods
source property Drive.amplitude: Waveform
The amplitude waveform in the drive.
source property Drive.detuning: Waveform
The detuning waveform in the drive.
source property Drive.weighted_detunings: Sequence[WeightedDetuning]
Detunings applied to individual qubits.
source property Drive.phase: float
The phase value in the drive.
source property Drive.duration: float
source method Drive.draw(n_points: int = 500, return_fig: bool = False) → Figure | None