utils

utils#

Full path: iqm.cpc.utils

Utility functions for the circuit-to-pulse compiler.

Functions

calset_from_observations(calset_observations)

Create a calibration set from the given observations.

calset_to_cal_data_tree(calibration_set_values)

Build an iqm-pulse QuantumOp calibration data tree from a calibration set.

convert_sweep_spot_to_arrays(results, ...)

Convert the sweep measurement results from Station Control into circuit batch measurement results.

convert_sweep_spot_to_arrays_with_heralding_mode_zero(...)

Like convert_sweep_spot_to_arrays(), but for results that contain heralding measurements.

map_sweep_results_to_logical_qubits(...)

Convert sweep results returned by Station Control to the circuit measurement results the client expects.

Exceptions

PostSelectionError

Error in performing post selection via heralded results.