pygsti.tools.jamiolkowski

pygsti.tools.jamiolkowski#

Utility functions related to the Choi representation of gates.

Functions

fast_jamiolkowski_iso_std(operation_mx, ...)

Returns the standard-basis representation of the Choi matrix for operation_mx, where operation_mx is interpreted in op_mx_basis.

fast_jamiolkowski_iso_std_inv(choi_mx, ...)

Given a choi matrix in the standard basis, return the corresponding operation matrix (in op_mx_basis).

jamiolkowski_iso(operation_mx[, ...])

Return a Choi matrix (in the choi_mx_basis) for operation_mx, when operation_mx is interpreted in the op_mx_basis.

jamiolkowski_iso_inv(choi_mx[, ...])

Given a choi matrix (interpreted in choi_mx_basis), return the corresponding operation matrix (in op_mx_basis).

magnitudes_of_negative_choi_eigenvalues(model)

Compute the magnitudes of the negative eigenvalues of the Choi matrices for each gate in model.

sum_of_negative_choi_eigenvalues(model[, ...])

Compute the amount of non-CP-ness of a model.

sum_of_negative_choi_eigenvalues_gate(op_mx, ...)

Compute the sum of the negative Choi eigenvalues of a process matrix.

sums_of_negative_choi_eigenvalues(model)

Compute the amount of non-CP-ness of a model.