pygsti.tools.optools.operation_from_error_generator#
- operation_from_error_generator(error_gen, target_op, mx_basis, typ='logG-logT')#
Construct a gate from an error generator and a target gate.
Inverts the computation done in
error_generator()and returns the value of the gate given by gate = target_op * exp(error_gen).- Parameters:
error_gen (ndarray) – The error generator matrix
target_op (ndarray) – The target operation matrix
mx_basis ({'std', 'gm', 'pp', 'qt'} or Basis object) – The source and destination basis, respectively. Allowed values are Matrix-unit (std), Gell-Mann (gm), Pauli-product (pp), and Qutrit (qt) (or a custom basis object).
typ ({"logG-logT", "logG-logT-quick", "logTiG", "logGTi"}) –
The type of error generator to invert. Allowed values are:
”logG-logT” : gate = exp( errgen + log(target_op) ) using internal logm
”logG-logT-quick” : gate = exp( errgen + log(target_op) ) using SciPy logm
”logTiG” : gate = dot( target_op, exp(errgen) )
”logGTi” : gate = dot( exp(errgen), target_op )
- Returns:
The operation matrix.
- Return type:
ndarray