pygsti.algorithms.twirled_deriv¶
-
pygsti.algorithms.
twirled_deriv
(gateset, gatestring, eps=1e-06)¶ Compute the “Twirled Derivative” of a gatestring, obtained by acting on the standard derivative of a gate string with the twirling superoperator.
Parameters: - gateset (Gateset object) – The gateset which associates gate labels with operators.
- gatestring (GateString object) – The gate string to take a twirled derivative of.
- eps (float, optional) – Tolerance used for testing whether two eigenvectors are degenerate (i.e. abs(eval1 - eval2) < eps ? )
Returns: An array of shape (gate_dim^2, num_gateset_params)
Return type: numpy array