post_process

post_process#

Full path: iqm.cpc.compiler.post_process

Post-processing utility functions for Experiment.

Module Attributes

COUNTER_INDEX

MultiQubitCounter state index.

MeasurementResults

Measurement results for a single circuit.

MeasurementResultsBatch

Type that represents measurement results for a batch of circuits.

GeneralReadoutMapping

Type for matching measurement keys from a quantum circuit with acquisition labels in Station Control.

GeneralReadoutMappingBatch

Type that represents readout mappings for a batch of circuits.

Functions

add_counter_averaged_readout(run)

Add single-qubit excited state probabilities from the multi qubit counter results to the dataset.

add_counts_for(run)

Add single-qubit excited state probabilities from the multi qubit counter results to the dataset.

average_single_shot_data(run)

Average the shots (or more generally the average bins) into a new data variable in the dataset.

classify_two_states(run)

Classify the complex data using the calibrated threshold.

compute_excitation_probability_from_data(run)

Compute the excited state probability for several components.

construct_circuit_execution_results(...)

Construct a CircuitExecutionResults instance from a raw PullaData instance.

construct_run_result(pulla_data, context)

Construct the dataset and attach it to a RunResult object.

contrast_data(run)

Add contrast for several components/readouts.

create_ragged_data_index(run)

Adds MultiIndex to the trigger index dimension for accessing ragged data via the hard sweep values.

extract_counter_group_data(run)

Extracts the data for all counter readout groups into their own data variables in the dataset.

process_metadata(run)

Process the metadata in the RunResult.

rename_data_variables(run, context)

Rename the data variables in the dataset and optionally change their data types.

Classes

CircuitExecutionResults

Old Pulla style circuit execution results.

PullaData

Raw Pulla return data.

Inheritance

Inheritance diagram of iqm.cpc.compiler.post_process