iqm.benchmarks.utils#
General utility functions
Functions
|
Returns num_bootstrap_samples resampled copies of the original_counts. |
|
Calculate the number of layers of parallel 2-qubit gates in a list of circuits. |
|
Count the number of IQM native gates of each quantum circuit in a list. |
|
Returns couplings and CZ-fidelities from calibration data URL |
|
Generate all quantum circuits required for a quantum state tomography experiment. |
|
Gets an estimate of a Pauli expectation value for a given set of counts and a Pauli measurement label. |
Extract active qubits from a quantum circuit. |
|
|
Get the IQM backend object from a backend name (str). |
|
Extracts the final measurement mapping (qubits to bits) of a quantum circuit. |
|
Given a Sequence of edges and a graph, return all neighboring nodes of the edges. |
|
Reconstructs a density matrix from given Pauli expectations. |
|
Compute the marginal distribution over specified bits (indices). |
|
Computes the median of a Sequence of float observations and returns value and propagated uncertainty. |
|
Transpile a list of circuits to backend specifications. |
|
Reduces a quantum circuit to only its active qubits. |
Remove duplicate edges from a coupling map and returns as a list of edges (as a list of pairs of vertices). |
|
|
Retrieve the counts from a list of IQMJob objects. |
|
Retrieve the counts from a list of IQMJob objects. |
|
Set a coupling map according to the specified physical layout. |
Sort batches of circuits according to the final measurement mapping in their corresponding backend. |
|
|
Split a given Sequence into chunks of a given split size, return as a List of Sequences. |
|
Submit function to execute lists of quantum circuits on the specified backend, |
|
Calculates the amount of time a function takes to execute |
|
Retrieve counts from xarray dataset. |