pygsti.tools.matrixtools.near_identity_matrix_log#
- near_identity_matrix_log(m, tol=1e-08)#
Construct the logarithm of superoperator matrix m that is near the identity.
If m is real, the resulting logarithm will be real.
- Parameters:
m (numpy array) – The superoperator matrix whose logarithm is taken
tol (float, optional) – The tolerance used when testing for zero imaginary parts.
- Returns:
An matrix logM, of the same shape as m, such that m = exp(logM) and logM is real when m is real.
- Return type:
numpy array