pygsti.tools.error_generator¶
-
pygsti.tools.
error_generator
(gate, target_gate)¶ Construct the error generator from a gate and its target.
Computes the value of the error generator given by errgen = log( inv(target_gate) * gate ), so that gate = target_gate * exp(errgen).
Parameters: - gate (ndarray) – The gate matrix
- target_gate (ndarray) – The target gate matrix
Returns: errgen – The error generator.
Return type: ndarray