Skip to content

bloqade.analog.compiler.passes.hardware.define.validate_waveforms

← Module overview

functionvalidate_waveformssource

bloqade.analog.compiler.passes.hardware.define.validate_waveforms

Signature
def validate_waveforms(level_couplings: Dict, circuit: analog_circuit.AnalogCircuit) -> None
  1. validate piecewise linear and piecewise constant pieces of pulses

This pass check to make sure that the waveforms are compatible with the hardware. This includes checking that the waveforms are piecewise linear or piecewise constant. It also checks that the waveforms are compatible with the given channels.

Parameters

NameTypeDescription
level_couplingsDictDictionary containing the given channels for the sequence.
circuitanalog_circuit.AnalogCircuitAnalogCircuit to validate waveforms for

Raises

TypeDescription
ValueErrorIf the waveforms are not piecewise linear or piecewise constant, e.g. the waveform is not continuous.
ValueErrorIf a waveform segment is not compatible with the given channels.
source