pygsti.modelmembers.states.optimize_state

Contents

pygsti.modelmembers.states.optimize_state#

optimize_state(vec_to_optimize, target_vec)#

Optimize the parameters of vec_to_optimize.

The optimization is performed so that the the resulting State vector is as close as possible to target_vec.

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

Parameters:
  • vec_to_optimize (State) – The state vector to optimize. This object gets altered.

  • target_vec (State) – The state vector used as the target.

Return type:

None