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.