pygsti.tools.errgenproptools#
Tools for the propagation of error generators through circuits.
Functions
|
|
|
First-order error generator sensitivity function for probability. |
|
First-order error generator sensitivity function for probability. |
|
First-order error generator sensitivity function for pauli expectations. |
|
First-order error generator sensitivity function for pauli expectations. |
|
Get the amplitude of a particular computational basis state for given stabilizer state. |
Calculate the approximate probability of a desired bit string using a first-order approximation. |
|
Calculate the approximate probability of a desired bit string using a first-order approximation. |
|
|
Calculate the approximate probability distribution over all bitstrings using a first-order approximation. |
|
Calculate the approximate probability of a desired bit string using an nth-order taylor series approximation. |
|
Apply the BCH approximation at the given order to combine the input dictionaries of error generator rates. |
|
Iteratively compute effective error generator layer produced by applying the BCH approximation to the list of input error generator matrices. |
|
Map a computational basis bit string into a corresponding Tableau which maps the all zero state into that state. |
|
First-order error generator sensitivity function for probability. |
|
First-order error generator sensitivity function for pauli expectations. |
|
Get the amplitudes particular computational basis state fors given stabilizer state. |
|
Computes the phi function for multiple (P, Q) pairs at once while caching and reusing intermediate values computed via pauli_phase_update_all_zeros and amplitude_of_state. |
|
|
|
Compute a canonical state, corresponding to the smallest state with non-zero amplitude, to use as a phase reference in computing the phases of components of this stabilizer state. |
Converts an input GlobalElementaryErrorgenLabel to a tuple of stim.PauliString objects, padded with an appropriate number of identities. |
|
|
Returns the commutator of two error generators. |
|
Numerically compute the commutator of the two specified elementary error generators. |
|
Returns the composition of two error generators. |
|
Numerically compute the composition of the two specified elementary error generators. |
|
Compute the nth-order taylor expansion for the exponentiation of the error generator described by the input error generator dictionary. |
Compute the nth-order taylor expansion for the exponentiation of the error generator described by the input error generator dictionary. |
|
|
Converts an iterable over error generator coefficients and rates into the corresponding dense numpy array representation. |
|
Apply the specified error generator to a given Pauli operator. |
|
Apply the specified error generator to a given Pauli operator. |
|
Return whether or not the desired bitstring is in the support of the stabilizer state corresponding to the input tableau. |
Iteratively compute error generator compositions. |
|
Iteratively compute error generator compositions. |
|
|
Function for computing the nth-order magnus expansion for a set of error generator layers. |
|
Compute effective error generator layer produced by applying the magnus expansions to the list of input error generator matrices. |
|
Helper function for doing the numerical BCH in a pairwise fashion. |
|
Takes as input a pauli and a bit string and computes the output bitstring and the overall phase that bit string accumulates. |
|
Specialized version of pauli_phase_update for the case of the all-zeros bitstring which is more computationally efficient. |
|
|
|
This function computes a quantity whose value is used in expression for the sensitivity of probabilities to error generators. |
|
This function computes a quantity whose value is used in expression for the sensitivity of probabilities to error generators. |
|
Compute the number of bits over which the stabilizer state corresponding to this stim tableau would have measurement outcomes which are random. |
|
Get the amplitude of a particular computational basis state for given stabilizer state. |
|
First-order error generator sensitivity function for probability. |
|
First-order error generator sensitivity function for pauli expectations. |
|
Get the amplitudes particular computational basis state fors given stabilizer state. |
|
Computes the phi function for multiple (P, Q) pairs at once while caching and reusing intermediate values computed via pauli_phase_update_all_zeros and amplitude_of_state. |
|
Takes as input a pauli and a bit string and computes the output bitstring and the overall phase that bit string accumulates. |
|
Specialized version of pauli_phase_update for the case of the all-zeros bitstring which is more computationally efficient. |
|
Calculate the output probability for the specified output bitstring. |
Compute the kth-order correction to the expectation value of the specified pauli. |
|
Compute the kth-order correction to the expectation value of the specified pauli. |
|
|
Calculate the output probability for the specified output bitstring. |
|
Compute the kth-order correction to the probability of the specified bit string. |
|
Returns true if pauli1 is less than pauli lexicographically. |
|
Calculate the fidelity between the stabilizer states corresponding to the given stim tableaus. |
|
Function for computing the nth-order Zassenhaus formula for a set of error generators. |
|
Function for numerically computing the nth-order Zassenhaus formula for a set of error generators. |