Skip to content

mis.pipeline.pulse

source module mis.pipeline.pulse

Classes

source 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

  • pulse Generate a pulse based on the problem and the provided register.

  • detuning

source method BasePulseShaper.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.

source method BasePulseShaper.detuning(config: SolverConfig, register: Register, backend: BaseBackend, instance: MISInstance)list[Detuning]

source dataclass PulseParameters(connected: list[float], disconnected: list[float], u_min: float, maximum_amplitude: float, duration_ns: float, final_detuning: float)

source 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

  • pulse Return a simple constant waveform pulse

  • detuning Return detunings to be executed alongside the pulses.

source method DefaultPulseShaper.pulse(config: SolverConfig, register: Register, backend: BaseBackend, instance: MISInstance)Pulse

Return a simple constant waveform pulse

source method DefaultPulseShaper.detuning(config: SolverConfig, register: Register, backend: BaseBackend, instance: MISInstance)list[Detuning]

Return detunings to be executed alongside the pulses.