NetKet 3.17__tar.gz → 3.17.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {netket-3.17 → netket-3.17.1}/PKG-INFO +1 -1
- {netket-3.17 → netket-3.17.1}/netket/_version.py +2 -2
- {netket-3.17 → netket-3.17.1}/netket/experimental/logging/hdf5_log.py +14 -8
- {netket-3.17 → netket-3.17.1}/netket/utils/history/history_dict.py +12 -1
- {netket-3.17 → netket-3.17.1}/.gitignore +0 -0
- {netket-3.17 → netket-3.17.1}/LICENSE +0 -0
- {netket-3.17 → netket-3.17.1}/README.md +0 -0
- {netket-3.17 → netket-3.17.1}/hatch.toml +0 -0
- {netket-3.17 → netket-3.17.1}/netket/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/callbacks/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/callbacks/convergence_stopping.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/callbacks/early_stopping.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/callbacks/invalid_loss_stopping.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/callbacks/timeout.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/driver/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/driver/abstract_variational_driver.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/driver/steady_state.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/driver/vmc.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/driver/vmc_common.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/errors.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/exact.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/driver/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/driver/tdvp.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/driver/tdvp_common.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/driver/tdvp_schmitt.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/driver/vmc_srt.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/dynamics/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/dynamics/_integrator.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/dynamics/_integrator_params.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/dynamics/_integrator_state.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/dynamics/_rk/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/dynamics/_rk/_solver.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/dynamics/_rk/_tableau.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/dynamics/_solver.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/dynamics/_utils.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/hilbert/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/logging/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/models/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/models/fast_rnn.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/models/rnn.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/nn/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/nn/rnn/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/nn/rnn/cells.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/nn/rnn/layers.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/nn/rnn/layers_fast.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/nn/rnn/ordering.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/observable/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/observable/renyi2/S2_operator.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/observable/renyi2/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/observable/renyi2/exact.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/observable/renyi2/expect.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/observable/variance/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/observable/variance/exact.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/observable/variance/expect.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/observable/variance/variance_operator.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/operator/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/operator/fermion.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/operator/pyscf.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/qsr/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/qsr/dataset.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/qsr/driver.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/qsr/logic_helpers.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/sampler/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/sampler/rules/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/vqs/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/experimental/vqs/io.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/graph/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/graph/_lattice_draw.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/graph/_lattice_edge_logic.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/graph/abstract_graph.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/graph/common_lattices.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/graph/graph.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/graph/lattice.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/graph/space_group.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/abstract_hilbert.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/constraint/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/constraint/base.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/constraint/multiple.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/constraint/sum.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/constraint/sum_partition.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/continuous_hilbert.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/custom_hilbert.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/discrete_hilbert.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/doubled_hilbert.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/fock.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/homogeneous.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/index/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/index/base.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/index/constrained_generic.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/index/constrained_sum.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/index/constrained_sum_partitions.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/index/unconstrained.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/index/uniform_tensor.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/particle.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/qubit.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/random/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/random/base.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/random/custom.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/random/doubled.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/random/fock.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/random/homogeneous.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/random/particle.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/random/qubit.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/random/tensor_hilbert.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/spin.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/spin_orbital_fermions.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/tensor_hilbert.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/hilbert/tensor_hilbert_discrete.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/jax/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/jax/_chunk_utils.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/jax/_expect.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/jax/_grad.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/jax/_jacobian/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/jax/_jacobian/default_mode.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/jax/_jacobian/jacobian_dense.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/jax/_jacobian/jacobian_pytree.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/jax/_jacobian/logic.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/jax/_math.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/jax/_scanmap.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/jax/_sort.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/jax/_utils_dtype.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/jax/_utils_random.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/jax/_utils_tree.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/jax/_vjp.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/jax/_vjp_chunked.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/jax/_vmap_chunked.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/jax/sharding.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/logging/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/logging/base.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/logging/json_log.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/logging/runtime_log.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/logging/state_log.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/logging/tensorboard.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/models/README.md +0 -0
- {netket-3.17 → netket-3.17.1}/netket/models/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/models/autoreg.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/models/deepset.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/models/equivariant.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/models/fast_autoreg.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/models/full_space.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/models/gaussian.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/models/jastrow.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/models/mlp.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/models/ndm.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/models/rbm.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/models/slater.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/models/tensor_networks/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/models/tensor_networks/mpdo.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/models/tensor_networks/mps.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/models/utils.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/nn/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/nn/activation.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/nn/blocks/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/nn/blocks/deepset.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/nn/blocks/mlp.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/nn/blocks/symmetry_sum.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/nn/fast_masked_linear.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/nn/masked_linear.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/nn/symmetric_linear.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/nn/utils.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_abstract_observable.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_abstract_operator.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_abstract_super_operator.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_bose_hubbard/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_bose_hubbard/base.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_bose_hubbard/jax.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_bose_hubbard/numba.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_continuous_operator.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_discrete_operator.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_discrete_operator_jax.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_fermion2nd/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_fermion2nd/base.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_fermion2nd/jax.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_fermion2nd/numba.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_fermion2nd/utils.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_graph_operator.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_hamiltonian.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_heisenberg.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_ising/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_ising/base.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_ising/jax.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_ising/numba.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_kinetic.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_lazy.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_local_liouvillian.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_local_operator/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_local_operator/base.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_local_operator/compile_helpers.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_local_operator/convert.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_local_operator/helpers.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_local_operator/jax.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_local_operator/numba.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_pauli_strings/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_pauli_strings/base.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_pauli_strings/jax.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_pauli_strings/numba.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_potential.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/_sumoperators.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/boson.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/fermion.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/operator/spin.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/optimizer/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/optimizer/linear_operator.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/optimizer/preconditioner.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/optimizer/qgt/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/optimizer/qgt/common.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/optimizer/qgt/default.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/optimizer/qgt/qgt_jacobian.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/optimizer/qgt/qgt_jacobian_common.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/optimizer/qgt/qgt_jacobian_dense.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/optimizer/qgt/qgt_jacobian_pytree.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/optimizer/qgt/qgt_onthefly.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/optimizer/qgt/qgt_onthefly_logic.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/optimizer/solver/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/optimizer/solver/solvers.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/optimizer/sr.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/autoreg.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/base.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/exact.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/metropolis.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/metropolis_numpy.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/parallel_tempering.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/rules/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/rules/base.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/rules/continuous_gaussian.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/rules/custom_numpy.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/rules/exchange.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/rules/fermion_2nd.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/rules/fixed.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/rules/hamiltonian.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/rules/hamiltonian_numpy.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/rules/langevin.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/rules/local.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/rules/local_numpy.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/rules/multiple.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/sampler/rules/tensor.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/stats/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/stats/_autocorr.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/stats/mc_stats.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/stats/mc_stats_old.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/stats/mpi_stats.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/tools/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/tools/_common.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/tools/_cpu_info.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/tools/_mpi_info.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/tools/check_mpi.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/tools/info.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/_dependencies_check.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/_serialization.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/api_utils.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/array.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/config_flags.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/deprecation.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/dispatch.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/display/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/display/repr.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/float.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/group/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/group/_group.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/group/_permutation_group.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/group/_point_group.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/group/_semigroup.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/group/axial.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/group/cubic.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/group/icosa.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/group/planar.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/history/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/history/accum.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/history/history.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/holomorphic.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/jax.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/model_frameworks/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/model_frameworks/base.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/model_frameworks/equinox.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/model_frameworks/flax.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/model_frameworks/haiku.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/model_frameworks/jax.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/model_frameworks/nnx.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/model_frameworks/nnx_wrapped.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/moduletools.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/mpi/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/mpi/gpu_autorank_util.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/mpi/mpi.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/mpi/primitives.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/numbers.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/optional_deps.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/partial.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/seed.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/static_number.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/static_range.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/struct/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/struct/dataclass.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/struct/fields.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/struct/pytree.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/struct/pytree_serialization_sharding.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/struct/utils.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/summation.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/timing.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/types.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/utils/version_check.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/base.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/full_summ/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/full_summ/expect.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/full_summ/state.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/mc/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/mc/common.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/mc/kernels.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/mc/mc_mixed_state/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/mc/mc_mixed_state/expect.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/mc/mc_mixed_state/expect_chunked.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/mc/mc_mixed_state/state.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/mc/mc_state/__init__.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/mc/mc_state/expect.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/mc/mc_state/expect_chunked.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/mc/mc_state/expect_forces.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/mc/mc_state/expect_forces_chunked.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/mc/mc_state/expect_grad.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/mc/mc_state/expect_grad_chunked.py +0 -0
- {netket-3.17 → netket-3.17.1}/netket/vqs/mc/mc_state/state.py +0 -0
- {netket-3.17 → netket-3.17.1}/pyproject.toml +0 -0
|
@@ -18,6 +18,7 @@ from flax.serialization import to_bytes
|
|
|
18
18
|
from flax.core import pop as fpop, FrozenDict
|
|
19
19
|
|
|
20
20
|
from netket.logging import AbstractLog
|
|
21
|
+
from netket.jax.sharding import extract_replicated
|
|
21
22
|
|
|
22
23
|
_mode_shorthands = {"write": "w", "append": "a", "fail": "x"}
|
|
23
24
|
|
|
@@ -172,22 +173,27 @@ class HDF5Log(AbstractLog):
|
|
|
172
173
|
if self._writer is None:
|
|
173
174
|
self._init_output_file()
|
|
174
175
|
|
|
176
|
+
if self._steps_notsaved_params % self._save_params_every == 0:
|
|
177
|
+
variables = variational_state.variables
|
|
178
|
+
|
|
179
|
+
# TODO: remove - FrozenDict are deprecated
|
|
180
|
+
if isinstance(variables, FrozenDict):
|
|
181
|
+
variables = variables.unfreeze()
|
|
182
|
+
variables = extract_replicated(variables)
|
|
183
|
+
self._steps_notsaved_params = 0
|
|
184
|
+
else:
|
|
185
|
+
variables = None
|
|
186
|
+
|
|
175
187
|
if self._is_master_process:
|
|
176
188
|
tree_log(log_data, "data", self._writer, iter=step)
|
|
177
189
|
|
|
178
|
-
if
|
|
179
|
-
variables = variational_state.variables
|
|
180
|
-
# TODO: remove - FrozenDict are deprecated
|
|
181
|
-
if isinstance(variables, FrozenDict):
|
|
182
|
-
variables = variables.unfreeze()
|
|
183
|
-
|
|
190
|
+
if variables is not None:
|
|
184
191
|
_, params = fpop(variables, "params")
|
|
185
192
|
binary_data = to_bytes(variables)
|
|
186
193
|
tree = {"model_state": binary_data, "parameters": params, "iter": step}
|
|
187
194
|
tree_log(tree, "variational_state", self._writer)
|
|
188
|
-
self._steps_notsaved_params = 0
|
|
189
|
-
|
|
190
195
|
self._writer.flush()
|
|
196
|
+
|
|
191
197
|
self._steps_notsaved_params += 1
|
|
192
198
|
|
|
193
199
|
def flush(self, variational_state=None):
|
|
@@ -34,6 +34,17 @@ else:
|
|
|
34
34
|
History = Any
|
|
35
35
|
|
|
36
36
|
|
|
37
|
+
def _format_key(k):
|
|
38
|
+
if hasattr(k, "key"):
|
|
39
|
+
return str(k.key)
|
|
40
|
+
elif hasattr(k, "idx"):
|
|
41
|
+
return str(k.idx)
|
|
42
|
+
elif hasattr(k, "name"):
|
|
43
|
+
return str(k, k.name)
|
|
44
|
+
else:
|
|
45
|
+
return str(k) # fallback
|
|
46
|
+
|
|
47
|
+
|
|
37
48
|
class HistoryDict:
|
|
38
49
|
"""A class that behaves like a dictionary, mapping strings to History instances or nested
|
|
39
50
|
HistoryDict instances.
|
|
@@ -91,7 +102,7 @@ class HistoryDict:
|
|
|
91
102
|
|
|
92
103
|
_repr_str = f"HistoryDict with {len(dk)} elements:"
|
|
93
104
|
for keys, val in dk:
|
|
94
|
-
path = "/".join([
|
|
105
|
+
path = "/".join([_format_key(k) for k in keys])
|
|
95
106
|
_repr_str += f"\n\t'{path}' -> " + str(val)
|
|
96
107
|
|
|
97
108
|
return _repr_str
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|