pygsti.tools.matrixtools.expm_multiply_prep#
- expm_multiply_prep(a, tol=1.1102230246251565e-16)#
Computes “prepared” meta-info about matrix a, to be used in expm_multiply_fast.
This includes a shifted version of a.
- Parameters:
a (numpy.ndarray) – the matrix that will be later exponentiated.
tol (float, optional) – Tolerance used to within matrix exponentiation routines.
- Returns:
A tuple of values to pass to expm_multiply_fast.
- Return type:
tuple