neuralqx.vqs.mc.common module

NOTE: part(s) of, or the entire content, of this file is obtained from NetKet’s source code

the original copyright mentioned above applies.

check_hilbert(A, B)
force_to_grad(Ō_grad, parameters)

Converts the forces vector F_k = cov(O_k, E_loc) to the observable gradient. In case of a complex target (which we assume to correspond to a holomorphic parametrization), this is the identity. For real-valued parameters, the gradient is 2 Re[F].