iqm.pulla.utils

iqm.pulla.utils#

Utility functions for IQM Pulla.

Module Attributes

InstructionLocation(channel_name, index, ...)

Return type for locate_instructions().

Functions

build_settings(shots, calibration_set, ...)

Construct the Station Control settings needed for executing a batch of quantum circuits.

calset_from_observations(calset_observations)

Create a calibration set from the given observations.

calset_to_cal_data_tree(calibration_set)

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

circuit_operations_to_cpc(circ_ops[, name])

Convert a list of CircuitOperations to an IQM CPC Circuit.

convert_sweep_spot(results, readout_mappings)

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

convert_sweep_spot_with_heralding_mode_zero(...)

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

extract_readout_controller_result_names(...)

Prepare readout controller names for the request.

find_circuit_boundary(mode, ...)

Determine the boundary of a circuit executed on the QPU.

get_hash_for(circuit)

Get a unique id hash for a given circuit.

initialize_schedule_builder(calibration_set, ...)

Initialize a new schedule builder for the station, validate that it is configured properly.

iqm_circuit_to_gate_implementation(circuit, ...)

Wrap a circuit to a single GateImplementation that can then be registered as an independent "gate".

locate_instructions(schedule, instruction_type)

Locate specific instructions in a schedule.

map_qubit_indices(circuits, context)

Map qubit indices in circuits to the indices in the component mapping.

map_sweep_results_to_logical_qubits(...)

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

print_channel(schedule, channel_name)

Print all instructions in a channel of a schedule.

print_schedule(schedule)

Print all instructions in each segment of a schedule.

replace_instruction_in_place(schedule, ...)

Replace an instruction in a schedule with one or more instructions.

Classes

InstructionLocation(channel_name, index, ...)

Return type for locate_instructions().

Inheritance

Inheritance diagram of iqm.pulla.utils