pygsti.tools.optools.fidelity_upper_bound

pygsti.tools.optools.fidelity_upper_bound#

fidelity_upper_bound(operation_mx)#

Get an upper bound on the fidelity of the given operation matrix with any unitary operation matrix.

The closeness of the result to one tells

how “unitary” the action of operation_mx is.

Parameters:

operation_mx (numpy array) – The operation matrix to act on.

Returns:

The resulting upper bound on fidelity(operation_mx, anyUnitaryGateMx)

Return type:

float