mis.pipeline.pulse
source module mis.pipeline.pulse
Classes
-
BasePulseShaper — Abstract base class for generating pulse schedules based on a MIS problem.
-
DefaultPulseShaper — A simple pulse shaper.
source dataclass BasePulseShaper(duration_us: 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_us : int | None — The duration of the pulse, in microseconds.
Methods
-
generate — Generate a pulse based on the problem and the provided register.
source method BasePulseShaper.generate(config: SolverConfig, register: Register) → 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.
source dataclass DefaultPulseShaper(duration_us: int | None = None)
Bases : BasePulseShaper
A simple pulse shaper.
Attributes
-
duration_us : int | None — The duration of the pulse, in microseconds.
Methods
-
generate — Return a simple constant waveform pulse
source method DefaultPulseShaper.generate(config: SolverConfig, register: Register) → Pulse
Return a simple constant waveform pulse