netket_foundation.vqs.save

Contents

netket_foundation.vqs.save#

netket_foundation.vqs.save(path, state, *, key='state')[source]#

Save state together with its reference samples and log-probabilities.

The archive contains {key: state, "reference": SamplesWithProb(...)}, so it can later be turned into an ISState via ISState.from_nqxpack() without re-sampling.

Parameters:
  • path (str) – Destination .nk path.

  • state – A sampled variational state (MCState / FoundationalQuantumState).

  • key (str) – Key under which the state is stored (default "state").

Return type:

None