pygsti.extras.paritybenchmarking.disturbancecalc#
Functions
|
Build a basis of matrices for constructing the transition matrix T = I + sum_i a_i G_i also builds the constraint matrix, C: C . |
|
Build a generic weight-n transition_matrix |
|
Compute the weight-X disturbances between two data sets (including error bars). |
Compute the weight-X distrubances between two data sets (including error bars). |
|
Compute 1-sigma error bars for a set of disturbances (given by ml_disturbances) using boostrap data. |
|
|
Compute the weight-X distrubances between two data sets (including error bars). |
|
Compute the weight-X disturbances between two data sets (including error bars). |
Compute the weight-X distrubances between two data sets (including error bars). |
|
Compute the weight-X distrubances between two data sets (including error bars). |
|
|
TODO: docstring |
|
Compute the weight-X residual TVDs between two data sets (including error bars). |
|
|
|
mx is an operator on two subsystems of dimension dim_a and dim_b mx = sum_i A_i otimes B_i where A_i is an operator on subsystem a and B_i is an operator on subsystem b Return: sum_i A_i otimes e otimes B_i |
|
Compute log likelihood of a probability distribution over bitstrings given data |
|
Returns a list of all matrix units of dimension dim |
|
Compute log likelihood of a probability distribution over bitstrings given data |
|
Kronecker product of all the elements of a |
|
The number of submatrices there are for weight |
|
The number of parameters needed to define a complete weight-w transition matrix |
|
The number of parameters needed to define a weight-w transition submatrix on n_bits |
|
n*log(p) such that if n == 0 the product is 0 too |
|
|
|
Sample from the ML probability distrubution of data. |
|
|
|
|
|
Produce a transition matrix of a given dimension given a parameter vector v. |
|
Returns the unit vector of length 'b' with the 'a'th element = 1 |
Classes
|
The profile likelihood obtained by maximizing the likelihood on level-sets of constant weight-X residual-TVD. |
|
Creates a plot of the profile log-likelihood. |
|
The max - log-likelihood regularized by a "fixed-transition-matrix residual TVD". The 'alpha' parameter determines the strength of the regularizaton. The objective function is: (max_logL - logL) + alpha * fixed_T_residual_tvd. |
|
Computes the "weight-X residual TVD": the TVD between two probability distributions up to weight-X transformations. |
|
Residual TVD with error bars given by an assumed-symmetric confidence-region. |