quantax.optimizer.OverlapGrad#
- class quantax.optimizer.OverlapGrad#
Overlap gradient source defining \(\bar \epsilon\) from the amplitude ratios with a target state, used for supervised wave function optimization.
- __init__(target_state: State, clip: float | None = None)#
- Parameters:
target_state – The target state to be approximated.
clip – The clipping value of the centered amplitude ratios, default to no clipping.
- ebar(state: Variational, samples: Samples | Array) Array#
Compute \(\bar \epsilon\) from the normalized amplitude ratios \(\phi_s / \psi_s\) for given samples.