bloqade.analog.compiler.passes.hardware.define.validate_waveforms
← Module overview
function
source
functionvalidate_waveforms¶source
bloqade.analog.compiler.passes.hardware.define.validate_waveforms
Signature
def validate_waveforms(level_couplings: Dict, circuit: analog_circuit.AnalogCircuit) -> None- 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
| Name | Type | Description |
|---|---|---|
level_couplings | Dict | Dictionary containing the given channels for the sequence. |
circuit | analog_circuit.AnalogCircuit | AnalogCircuit to validate waveforms for |
Raises
| Type | Description |
|---|---|
ValueError | If the waveforms are not piecewise linear or piecewise constant, e.g. the waveform is not continuous. |
ValueError | If a waveform segment is not compatible with the given channels. |