-
BasePulseShaper — Abstract base class for generating pulse schedules based on a MIS problem.
-
DefaultPulseShaper — A simple pulse shaper.
mis.pipeline.pulse
module
mis.pipeline.pulse
Classes
dataclass
BasePulseShaper
(duration_ns: int | None = None)
Bases : ABC
Abstract base class for generating pulse schedules based on a MIS problem.
This class transforms the structure of a MISInstance into a quantum pulse sequence that can be applied to a physical register. The register is passed at the time of pulse generation, not during initialization.
Attributes
-
duration_ns : int | None — The duration of the pulse, in nanoseconds.
Methods
method
pulse
(config: SolverConfig, register: Register, backend: BaseBackend, instance: MISInstance) → Pulse
Generate a pulse based on the problem and the provided register.
Parameters
-
config : SolverConfig — The configuration for this pulse.
-
register : Register — The physical register layout.
Returns
-
Pulse — A generated pulse object wrapping a Pulser pulse.
method
detuning
(config: SolverConfig, register: Register, backend: BaseBackend, instance: MISInstance) → list[Detuning]
dataclass
PulseParameters
(connected: list[float], disconnected: list[float], u_min: float, maximum_amplitude: float, duration_ns: float, final_detuning: float)
dataclass
DefaultPulseShaper
(duration_ns: int | None = None)
Bases : BasePulseShaper
A simple pulse shaper.
Attributes
-
duration_ns : int | None — The duration of the pulse, in nanoseconds.
Methods
method
pulse
(config: SolverConfig, register: Register, backend: BaseBackend, instance: MISInstance) → Pulse
Return a simple constant waveform pulse
method
detuning
(config: SolverConfig, register: Register, backend: BaseBackend, instance: MISInstance) → list[Detuning]
Return detunings to be executed alongside the pulses.