pygsti.tools.fidelity_upper_bound¶
-
pygsti.tools.
fidelity_upper_bound
(gateMx)¶ - Get an upper bound on the fidelity of the given
- gate matrix with any unitary gate matrix.
- The closeness of the result to one tells
- how “unitary” the action of gateMx is.
Parameters: gateMx (numpy array) – The gate matrix to act on. Returns: The resulting upper bound on fidelity(gateMx, anyUnitaryGateMx) Return type: float