pygsti.objects.optimize_gate

pygsti.objects.optimize_gate(gateToOptimize, targetGate)
Optimize the parameters of gateToOptimize so that the
the resulting gate matrix is as close as possible to targetGate’s matrix.
This is trivial for the case of FullyParameterizedGate
instances, but for other types of parameterization this involves an iterative optimization over all the parameters of gateToOptimize.
Parameters:
  • gateToOptimize (Gate) – The gate to optimize. This object gets altered.
  • targetGate (Gate) – The gate whose matrix is used as the target.
Returns:

Return type:

None