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.

construct_run_result(sweep_results, context)

Pass for converting sweep_results into a dataset and wrapping it in a RunResult.

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 execution results.

Inheritance

Inheritance diagram of iqm.cpc.compiler.post_process