pygsti.algorithms.core.find_closest_unitary_opmx#
- find_closest_unitary_opmx(operation_mx, op_basis='pp')#
Find the closest (in fidelity) unitary superoperator to operation_mx.
Finds the closest operation matrix (by maximizing fidelity) to operation_mx that describes a unitary quantum gate.
- Parameters:
operation_mx (numpy array) – The operation matrix to act on.
op_basis (Basis | str)
- Returns:
The resulting closest unitary operation matrix.
- Return type:
numpy array