pygsti.algorithms.bulk_twirled_deriv

pygsti.algorithms.bulk_twirled_deriv(gateset, gatestrings, eps=1e-06, check=False)

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.
  • gatestrings (list of GateString objects) – 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 ? )
  • check (bool, optional) – Whether to perform internal consistency checks, at the expense of making the function slower.
Returns:

An array of shape (num_gate_strings, gate_dim^2, num_gateset_params)

Return type:

numpy array