iqm.benchmarks.compressive_gst.mgst.reporting.reporting

iqm.benchmarks.compressive_gst.mgst.reporting.reporting#

Generation of error measures and result tables.

Functions

MVE_data(X, E, rho, J, y)

Mean varation error between measured outcomes and predicted outcomes from a gate set.

bootstrap_errors(K, X, E, rho, mGST_args, ...)

Resamples circuit outcomes a number of times and computes GST estimates for each repetition.

compute_angles_axes(U_set[, alternative_phase])

Takes the matrix logarithm of the given unitaries and returns the Hamiltonian parameters.

compute_matched_ideal_hamiltonian_params(dataset)

Computes the Hamiltonian parameters and matches the ideal Hamiltonian parameters to the measured ones.

compute_sparsest_Pauli_Hamiltonian(U_set)

Takes the matrix logarithms of the given unitaries and returns sparsest Hamiltonian parameters in Pauli basis.

dephasing_dist(prob_vec, X_pp)

Returns the distance between a given channel and a local dephasing channel with given probabilities.

dephasing_probabilities_2q(X_opt_pp, X_ideal_pp)

Determines the local dephasing channel parameters which best describe the noise model.

generate_Choi_EV_table(X_opt, n_evals, ...)

Outputs a .tex document containing a table with the larges eigenvalues of the Choi matrix for each gate.

generate_basis_labels(pdim[, basis])

Generate a list of labels for the Pauli basis or the standard basis.

generate_rotation_param_results(dataset, ...)

Produces result tables and data for Kraus rank 1 estimates.

job_counts_to_mGST_format(qubits, num_povm, ...)

Turns the dictionary of outcomes obtained from qiskit backend into the format which is used in mGST.

match_hamiltonian_phase(pauli_coeffs, ...)

Matches the sign of the phase of a target Hamiltonian represented by Pauli coeffs to a measured Hamiltonian.

min_spectral_distance(X1, X2)

Computes the average absolute distance between the eigenvlues of two matrices.

number_to_str(number[, uncertainty, precision])

Formats a floating point number to a string with the given precision.

phase_err(angle, U, U_t)

Computes norm between two input unitaries after a global phase is added to one of them.

phase_opt(X, K_t)

Return rK = 1 gate set with global phase fitting matching to target gate set.

quick_report(X, E, rho, J, y, X_t, E_t, rho_t)

Generation of pandas dataframes with gate and SPAM quality measures.

report(X, E, rho, J, y, X_t, E_t, rho_t, ...)

Generation of pandas dataframes with gate and SPAM quality measures.

result_str_to_floats(result_str, err)

Converts formated string results from mgst to float (value, uncertainty) pairs.

save_var_latex(key, value)

Saves variables in data file to be read in latex document.

unitarities(X_opt_pp)

Computes the unitarities of all gates in the gate set.