Utilities#
|
Compute the fidelity between two probability distributions. |
|
Normalize fidelity against a fully depolarized output distribution. |
Compute the ideal probabilities of the quantum circuit for all possible reversed (big-endian) bitstrings. |
|
Remove the final measurement of a quantum circuit and return the statevector of the circuit. |
|
|
Randomly insert Pauli twirls around chosen two-qubit gates. |