I am doing a VQE in Cirq, but sometimes I get this error while running steps of the classical optimization loop: State_vector is not normalized instead had norm 1.0000000010132789 And therefore the program interrupts.
Is there anything I can do to avoid this? Because my state should be normalized the way I constructed the circuit.
state_vector = state_vector / np.linalg.norm(state_vector)
in your feedback loop? Also this question is probably better suited for the cirq github or gitter site: gitter.im/cirqdev $\endgroup$