netket.experimental.vqs.variables_from_tar

netket.experimental.vqs.variables_from_tar#

netket.experimental.vqs.variables_from_tar(filename, variables, i)[source]#

Loads the variables of a variational state from the i-th element of a .tar archive.

Parameters:
  • filename (str) – the tar archive name. Assumes a .tar extension and adds it if missing and no file exists.

  • variables (Any) – An object variables with the same structure and shape of the object to be deserialized.

  • i (int) – the index of the variables to load