iqm.benchmarks.compressive_gst.mgst.additional_fns#
Utility functions used by mGST modules.
Functions
|
Returns the average gate fidelity between a superoperator and a set of Kraus operators. |
|
Compute the Kraus representations for all gates in the gate set. |
|
Mean varation error between the outputs of two gate sets on random sequences. |
|
Mean of the p-norm deviation between the outputs of two gate sets on random sequences. |
|
Creates standard basis vectors. |
|
Returns random batch of sequences and corresponding measurements. |
|
Kraus representation of depolarizing channel. |
|
Generate random fiducial sequencecs. |
|
Returns the tensor product of single qubit dephasing channels in Pauli basis. |
|
Computes the Kronecker product of all matrices in an array. |
|
Returns the number of free parameters in a gate set. |
|
Searches a specified folder for .txt files containing circuit outcomes and combines the results. |
|
Generates a small random noise gate around the identity and applies it to the target gate. |
|
Generate random square hermitian matrix. |
|
Generates random set of operators that are hermiticity preserving. |
|
Generates random set of Kraus operators. |
|
Generates random set of Kraus operators. |
|
Generates random unitary from a random hermitian generator. |
|
Return a Haar distributed random unitary. |
|
Generates a random gate using the Gaussian unitary ensemble, initial state and POVM. |
|
Generates a random gate set with gates from Haar random unitaries, initial state and POVM. |
|
Generate random gate sequence instructions. |
|
Generate a set of random sequences ith given lengths. |
|
Generate a random positive semidefinite square matrix. |
|
Generate vector with real and imaginary part drawn from the normal distribution. |
|
Compute finite sample estimates of input probabilities. |
|
Superoperator of a map that performs the transpose operation. |
|
Return the total variation distance between model probabilities and y_data. |