pygsti.tools.matrixtools.find_zero_communtant_connection#
- find_zero_communtant_connection(u, u_inv, u0, u0_inv, kite)#
Find a matrix R such that u_inv R u0 is diagonal AND log(R) has no projection onto the commutant of G0.
More specifically, find a matrix R such that u_inv R u0 is diagonal (so G = R G0 Rinv if G and G0 share the same eigenvalues and have eigenvectors u and u0 respectively) AND log(R) has no (zero) projection onto the commutant of G0 = u0 diag(evals) u0_inv.
- Parameters:
u (numpy.ndarray) – Usually the eigenvector matrix of a gate (G).
u_inv (numpy.ndarray) – Inverse of u.
u0 (numpy.ndarray) – Usually the eigenvector matrix of the corresponding target gate (G0).
u0_inv (numpy.ndarray) – Inverse of u0.
kite (list) – The kite structure of u0.
- Return type:
numpy.ndarray