pygsti.modelmembers.operations.optimize_operation

pygsti.modelmembers.operations.optimize_operation#

optimize_operation(op_to_optimize, target_op)#

Optimize the parameters of op_to_optimize.

Optimization is performed so that the the resulting operation matrix is as close as possible to target_op’s matrix.

This is trivial for the case of FullArbitraryOp instances, but for other types of parameterization this involves an iterative optimization over all the parameters of op_to_optimize.

Parameters:
  • op_to_optimize (LinearOperator) – The operation to optimize. This object gets altered.

  • target_op (LinearOperator) – The operation whose matrix is used as the target.

Return type:

None