NetKet 3.12.2__tar.gz → 3.12.4__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.
Files changed (321) hide show
  1. {netket-3.12.2 → netket-3.12.4}/PKG-INFO +1 -1
  2. {netket-3.12.2 → netket-3.12.4}/netket/_version.py +2 -2
  3. {netket-3.12.2 → netket-3.12.4}/netket/callbacks/earlystopping.py +1 -1
  4. {netket-3.12.2 → netket-3.12.4}/netket/experimental/operator/_fermion_operator_2nd_base.py +1 -1
  5. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/random/base.py +3 -12
  6. {netket-3.12.2 → netket-3.12.4}/netket/operator/_hamiltonian.py +15 -20
  7. {netket-3.12.2 → netket-3.12.4}/netket/operator/_ising/base.py +7 -0
  8. {netket-3.12.2 → netket-3.12.4}/netket/operator/_local_operator/base.py +0 -1
  9. {netket-3.12.2 → netket-3.12.4}/netket/optimizer/qgt/qgt_jacobian_common.py +5 -3
  10. {netket-3.12.2 → netket-3.12.4}/.gitignore +0 -0
  11. {netket-3.12.2 → netket-3.12.4}/LICENSE +0 -0
  12. {netket-3.12.2 → netket-3.12.4}/README.md +0 -0
  13. {netket-3.12.2 → netket-3.12.4}/netket/__init__.py +0 -0
  14. {netket-3.12.2 → netket-3.12.4}/netket/callbacks/__init__.py +0 -0
  15. {netket-3.12.2 → netket-3.12.4}/netket/callbacks/convergence_stopping.py +0 -0
  16. {netket-3.12.2 → netket-3.12.4}/netket/callbacks/invalidlossstopping.py +0 -0
  17. {netket-3.12.2 → netket-3.12.4}/netket/callbacks/timeout.py +0 -0
  18. {netket-3.12.2 → netket-3.12.4}/netket/driver/__init__.py +0 -0
  19. {netket-3.12.2 → netket-3.12.4}/netket/driver/abstract_variational_driver.py +0 -0
  20. {netket-3.12.2 → netket-3.12.4}/netket/driver/steady_state.py +0 -0
  21. {netket-3.12.2 → netket-3.12.4}/netket/driver/vmc.py +0 -0
  22. {netket-3.12.2 → netket-3.12.4}/netket/driver/vmc_common.py +0 -0
  23. {netket-3.12.2 → netket-3.12.4}/netket/errors.py +0 -0
  24. {netket-3.12.2 → netket-3.12.4}/netket/exact.py +0 -0
  25. {netket-3.12.2 → netket-3.12.4}/netket/experimental/__init__.py +0 -0
  26. {netket-3.12.2 → netket-3.12.4}/netket/experimental/driver/__init__.py +0 -0
  27. {netket-3.12.2 → netket-3.12.4}/netket/experimental/driver/tdvp.py +0 -0
  28. {netket-3.12.2 → netket-3.12.4}/netket/experimental/driver/tdvp_common.py +0 -0
  29. {netket-3.12.2 → netket-3.12.4}/netket/experimental/driver/tdvp_schmitt.py +0 -0
  30. {netket-3.12.2 → netket-3.12.4}/netket/experimental/driver/vmc_srt.py +0 -0
  31. {netket-3.12.2 → netket-3.12.4}/netket/experimental/dynamics/__init__.py +0 -0
  32. {netket-3.12.2 → netket-3.12.4}/netket/experimental/dynamics/_rk_solver.py +0 -0
  33. {netket-3.12.2 → netket-3.12.4}/netket/experimental/dynamics/_rk_solver_structures.py +0 -0
  34. {netket-3.12.2 → netket-3.12.4}/netket/experimental/dynamics/_rk_tableau.py +0 -0
  35. {netket-3.12.2 → netket-3.12.4}/netket/experimental/hilbert/__init__.py +0 -0
  36. {netket-3.12.2 → netket-3.12.4}/netket/experimental/hilbert/spin_orbital_fermions.py +0 -0
  37. {netket-3.12.2 → netket-3.12.4}/netket/experimental/logging/__init__.py +0 -0
  38. {netket-3.12.2 → netket-3.12.4}/netket/experimental/logging/hdf5_log.py +0 -0
  39. {netket-3.12.2 → netket-3.12.4}/netket/experimental/models/__init__.py +0 -0
  40. {netket-3.12.2 → netket-3.12.4}/netket/experimental/models/fast_rnn.py +0 -0
  41. {netket-3.12.2 → netket-3.12.4}/netket/experimental/models/rnn.py +0 -0
  42. {netket-3.12.2 → netket-3.12.4}/netket/experimental/nn/__init__.py +0 -0
  43. {netket-3.12.2 → netket-3.12.4}/netket/experimental/nn/rnn/__init__.py +0 -0
  44. {netket-3.12.2 → netket-3.12.4}/netket/experimental/nn/rnn/cells.py +0 -0
  45. {netket-3.12.2 → netket-3.12.4}/netket/experimental/nn/rnn/layers.py +0 -0
  46. {netket-3.12.2 → netket-3.12.4}/netket/experimental/nn/rnn/layers_fast.py +0 -0
  47. {netket-3.12.2 → netket-3.12.4}/netket/experimental/nn/rnn/ordering.py +0 -0
  48. {netket-3.12.2 → netket-3.12.4}/netket/experimental/observable/__init__.py +0 -0
  49. {netket-3.12.2 → netket-3.12.4}/netket/experimental/observable/renyi2/S2_operator.py +0 -0
  50. {netket-3.12.2 → netket-3.12.4}/netket/experimental/observable/renyi2/__init__.py +0 -0
  51. {netket-3.12.2 → netket-3.12.4}/netket/experimental/observable/renyi2/exact.py +0 -0
  52. {netket-3.12.2 → netket-3.12.4}/netket/experimental/observable/renyi2/expect.py +0 -0
  53. {netket-3.12.2 → netket-3.12.4}/netket/experimental/operator/__init__.py +0 -0
  54. {netket-3.12.2 → netket-3.12.4}/netket/experimental/operator/_fermion_operator_2nd_jax.py +0 -0
  55. {netket-3.12.2 → netket-3.12.4}/netket/experimental/operator/_fermion_operator_2nd_numba.py +0 -0
  56. {netket-3.12.2 → netket-3.12.4}/netket/experimental/operator/_fermion_operator_2nd_utils.py +0 -0
  57. {netket-3.12.2 → netket-3.12.4}/netket/experimental/operator/fermion.py +0 -0
  58. {netket-3.12.2 → netket-3.12.4}/netket/experimental/operator/pyscf.py +0 -0
  59. {netket-3.12.2 → netket-3.12.4}/netket/experimental/qsr/__init__.py +0 -0
  60. {netket-3.12.2 → netket-3.12.4}/netket/experimental/qsr/dataset.py +0 -0
  61. {netket-3.12.2 → netket-3.12.4}/netket/experimental/qsr/driver.py +0 -0
  62. {netket-3.12.2 → netket-3.12.4}/netket/experimental/qsr/logic_helpers.py +0 -0
  63. {netket-3.12.2 → netket-3.12.4}/netket/experimental/sampler/__init__.py +0 -0
  64. {netket-3.12.2 → netket-3.12.4}/netket/experimental/sampler/metropolis.py +0 -0
  65. {netket-3.12.2 → netket-3.12.4}/netket/experimental/sampler/metropolis_pmap.py +0 -0
  66. {netket-3.12.2 → netket-3.12.4}/netket/experimental/sampler/metropolis_pt.py +0 -0
  67. {netket-3.12.2 → netket-3.12.4}/netket/experimental/sampler/rules/__init__.py +0 -0
  68. {netket-3.12.2 → netket-3.12.4}/netket/experimental/sampler/rules/fermion_2nd.py +0 -0
  69. {netket-3.12.2 → netket-3.12.4}/netket/experimental/vqs/__init__.py +0 -0
  70. {netket-3.12.2 → netket-3.12.4}/netket/experimental/vqs/io.py +0 -0
  71. {netket-3.12.2 → netket-3.12.4}/netket/graph/__init__.py +0 -0
  72. {netket-3.12.2 → netket-3.12.4}/netket/graph/_lattice_edge_logic.py +0 -0
  73. {netket-3.12.2 → netket-3.12.4}/netket/graph/abstract_graph.py +0 -0
  74. {netket-3.12.2 → netket-3.12.4}/netket/graph/common_lattices.py +0 -0
  75. {netket-3.12.2 → netket-3.12.4}/netket/graph/graph.py +0 -0
  76. {netket-3.12.2 → netket-3.12.4}/netket/graph/lattice.py +0 -0
  77. {netket-3.12.2 → netket-3.12.4}/netket/graph/space_group.py +0 -0
  78. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/__init__.py +0 -0
  79. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/abstract_hilbert.py +0 -0
  80. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/continuous_hilbert.py +0 -0
  81. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/custom_hilbert.py +0 -0
  82. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/discrete_hilbert.py +0 -0
  83. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/doubled_hilbert.py +0 -0
  84. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/fock.py +0 -0
  85. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/homogeneous.py +0 -0
  86. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/index/__init__.py +0 -0
  87. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/index/base.py +0 -0
  88. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/index/constraints/__init__.py +0 -0
  89. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/index/constraints/base.py +0 -0
  90. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/index/constraints/sum.py +0 -0
  91. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/index/unconstrained.py +0 -0
  92. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/index/uniform_tensor.py +0 -0
  93. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/particle.py +0 -0
  94. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/qubit.py +0 -0
  95. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/random/__init__.py +0 -0
  96. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/random/custom.py +0 -0
  97. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/random/doubled.py +0 -0
  98. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/random/fock.py +0 -0
  99. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/random/particle.py +0 -0
  100. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/random/qubit.py +0 -0
  101. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/random/spin.py +0 -0
  102. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/random/tensor_hilbert.py +0 -0
  103. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/spin.py +0 -0
  104. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/tensor_hilbert.py +0 -0
  105. {netket-3.12.2 → netket-3.12.4}/netket/hilbert/tensor_hilbert_discrete.py +0 -0
  106. {netket-3.12.2 → netket-3.12.4}/netket/jax/__init__.py +0 -0
  107. {netket-3.12.2 → netket-3.12.4}/netket/jax/_chunk_utils.py +0 -0
  108. {netket-3.12.2 → netket-3.12.4}/netket/jax/_expect.py +0 -0
  109. {netket-3.12.2 → netket-3.12.4}/netket/jax/_grad.py +0 -0
  110. {netket-3.12.2 → netket-3.12.4}/netket/jax/_jacobian/__init__.py +0 -0
  111. {netket-3.12.2 → netket-3.12.4}/netket/jax/_jacobian/default_mode.py +0 -0
  112. {netket-3.12.2 → netket-3.12.4}/netket/jax/_jacobian/jacobian_dense.py +0 -0
  113. {netket-3.12.2 → netket-3.12.4}/netket/jax/_jacobian/jacobian_pytree.py +0 -0
  114. {netket-3.12.2 → netket-3.12.4}/netket/jax/_jacobian/logic.py +0 -0
  115. {netket-3.12.2 → netket-3.12.4}/netket/jax/_math.py +0 -0
  116. {netket-3.12.2 → netket-3.12.4}/netket/jax/_scanmap.py +0 -0
  117. {netket-3.12.2 → netket-3.12.4}/netket/jax/_sort.py +0 -0
  118. {netket-3.12.2 → netket-3.12.4}/netket/jax/_utils_dtype.py +0 -0
  119. {netket-3.12.2 → netket-3.12.4}/netket/jax/_utils_random.py +0 -0
  120. {netket-3.12.2 → netket-3.12.4}/netket/jax/_utils_tree.py +0 -0
  121. {netket-3.12.2 → netket-3.12.4}/netket/jax/_vjp.py +0 -0
  122. {netket-3.12.2 → netket-3.12.4}/netket/jax/_vjp_chunked.py +0 -0
  123. {netket-3.12.2 → netket-3.12.4}/netket/jax/_vmap_chunked.py +0 -0
  124. {netket-3.12.2 → netket-3.12.4}/netket/jax/sharding.py +0 -0
  125. {netket-3.12.2 → netket-3.12.4}/netket/logging/__init__.py +0 -0
  126. {netket-3.12.2 → netket-3.12.4}/netket/logging/base.py +0 -0
  127. {netket-3.12.2 → netket-3.12.4}/netket/logging/json_log.py +0 -0
  128. {netket-3.12.2 → netket-3.12.4}/netket/logging/runtime_log.py +0 -0
  129. {netket-3.12.2 → netket-3.12.4}/netket/logging/state_log.py +0 -0
  130. {netket-3.12.2 → netket-3.12.4}/netket/logging/tensorboard.py +0 -0
  131. {netket-3.12.2 → netket-3.12.4}/netket/models/README.md +0 -0
  132. {netket-3.12.2 → netket-3.12.4}/netket/models/__init__.py +0 -0
  133. {netket-3.12.2 → netket-3.12.4}/netket/models/autoreg.py +0 -0
  134. {netket-3.12.2 → netket-3.12.4}/netket/models/deepset.py +0 -0
  135. {netket-3.12.2 → netket-3.12.4}/netket/models/equivariant.py +0 -0
  136. {netket-3.12.2 → netket-3.12.4}/netket/models/fast_autoreg.py +0 -0
  137. {netket-3.12.2 → netket-3.12.4}/netket/models/full_space.py +0 -0
  138. {netket-3.12.2 → netket-3.12.4}/netket/models/gaussian.py +0 -0
  139. {netket-3.12.2 → netket-3.12.4}/netket/models/jastrow.py +0 -0
  140. {netket-3.12.2 → netket-3.12.4}/netket/models/mlp.py +0 -0
  141. {netket-3.12.2 → netket-3.12.4}/netket/models/ndm.py +0 -0
  142. {netket-3.12.2 → netket-3.12.4}/netket/models/rbm.py +0 -0
  143. {netket-3.12.2 → netket-3.12.4}/netket/models/slater.py +0 -0
  144. {netket-3.12.2 → netket-3.12.4}/netket/models/tensor_networks/__init__.py +0 -0
  145. {netket-3.12.2 → netket-3.12.4}/netket/models/tensor_networks/mpdo.py +0 -0
  146. {netket-3.12.2 → netket-3.12.4}/netket/models/tensor_networks/mps.py +0 -0
  147. {netket-3.12.2 → netket-3.12.4}/netket/models/utils.py +0 -0
  148. {netket-3.12.2 → netket-3.12.4}/netket/nn/__init__.py +0 -0
  149. {netket-3.12.2 → netket-3.12.4}/netket/nn/activation.py +0 -0
  150. {netket-3.12.2 → netket-3.12.4}/netket/nn/blocks/__init__.py +0 -0
  151. {netket-3.12.2 → netket-3.12.4}/netket/nn/blocks/deepset.py +0 -0
  152. {netket-3.12.2 → netket-3.12.4}/netket/nn/blocks/mlp.py +0 -0
  153. {netket-3.12.2 → netket-3.12.4}/netket/nn/blocks/symmetry_sum.py +0 -0
  154. {netket-3.12.2 → netket-3.12.4}/netket/nn/deprecation.py +0 -0
  155. {netket-3.12.2 → netket-3.12.4}/netket/nn/fast_masked_linear.py +0 -0
  156. {netket-3.12.2 → netket-3.12.4}/netket/nn/initializers.py +0 -0
  157. {netket-3.12.2 → netket-3.12.4}/netket/nn/masked_linear.py +0 -0
  158. {netket-3.12.2 → netket-3.12.4}/netket/nn/symmetric_linear.py +0 -0
  159. {netket-3.12.2 → netket-3.12.4}/netket/nn/utils.py +0 -0
  160. {netket-3.12.2 → netket-3.12.4}/netket/operator/__init__.py +0 -0
  161. {netket-3.12.2 → netket-3.12.4}/netket/operator/_abstract_observable.py +0 -0
  162. {netket-3.12.2 → netket-3.12.4}/netket/operator/_abstract_operator.py +0 -0
  163. {netket-3.12.2 → netket-3.12.4}/netket/operator/_abstract_super_operator.py +0 -0
  164. {netket-3.12.2 → netket-3.12.4}/netket/operator/_bose_hubbard/__init__.py +0 -0
  165. {netket-3.12.2 → netket-3.12.4}/netket/operator/_bose_hubbard/base.py +0 -0
  166. {netket-3.12.2 → netket-3.12.4}/netket/operator/_bose_hubbard/jax.py +0 -0
  167. {netket-3.12.2 → netket-3.12.4}/netket/operator/_bose_hubbard/numba.py +0 -0
  168. {netket-3.12.2 → netket-3.12.4}/netket/operator/_continuous_operator.py +0 -0
  169. {netket-3.12.2 → netket-3.12.4}/netket/operator/_discrete_operator.py +0 -0
  170. {netket-3.12.2 → netket-3.12.4}/netket/operator/_discrete_operator_jax.py +0 -0
  171. {netket-3.12.2 → netket-3.12.4}/netket/operator/_graph_operator.py +0 -0
  172. {netket-3.12.2 → netket-3.12.4}/netket/operator/_heisenberg.py +0 -0
  173. {netket-3.12.2 → netket-3.12.4}/netket/operator/_ising/__init__.py +0 -0
  174. {netket-3.12.2 → netket-3.12.4}/netket/operator/_ising/jax.py +0 -0
  175. {netket-3.12.2 → netket-3.12.4}/netket/operator/_ising/numba.py +0 -0
  176. {netket-3.12.2 → netket-3.12.4}/netket/operator/_kinetic.py +0 -0
  177. {netket-3.12.2 → netket-3.12.4}/netket/operator/_lazy.py +0 -0
  178. {netket-3.12.2 → netket-3.12.4}/netket/operator/_local_liouvillian.py +0 -0
  179. {netket-3.12.2 → netket-3.12.4}/netket/operator/_local_operator/__init__.py +0 -0
  180. {netket-3.12.2 → netket-3.12.4}/netket/operator/_local_operator/compile_helpers.py +0 -0
  181. {netket-3.12.2 → netket-3.12.4}/netket/operator/_local_operator/convert.py +0 -0
  182. {netket-3.12.2 → netket-3.12.4}/netket/operator/_local_operator/helpers.py +0 -0
  183. {netket-3.12.2 → netket-3.12.4}/netket/operator/_local_operator/jax.py +0 -0
  184. {netket-3.12.2 → netket-3.12.4}/netket/operator/_local_operator/numba.py +0 -0
  185. {netket-3.12.2 → netket-3.12.4}/netket/operator/_pauli_strings/__init__.py +0 -0
  186. {netket-3.12.2 → netket-3.12.4}/netket/operator/_pauli_strings/base.py +0 -0
  187. {netket-3.12.2 → netket-3.12.4}/netket/operator/_pauli_strings/jax.py +0 -0
  188. {netket-3.12.2 → netket-3.12.4}/netket/operator/_pauli_strings/numba.py +0 -0
  189. {netket-3.12.2 → netket-3.12.4}/netket/operator/_potential.py +0 -0
  190. {netket-3.12.2 → netket-3.12.4}/netket/operator/_sumoperators.py +0 -0
  191. {netket-3.12.2 → netket-3.12.4}/netket/operator/boson.py +0 -0
  192. {netket-3.12.2 → netket-3.12.4}/netket/operator/spin.py +0 -0
  193. {netket-3.12.2 → netket-3.12.4}/netket/optimizer/__init__.py +0 -0
  194. {netket-3.12.2 → netket-3.12.4}/netket/optimizer/linear_operator.py +0 -0
  195. {netket-3.12.2 → netket-3.12.4}/netket/optimizer/preconditioner.py +0 -0
  196. {netket-3.12.2 → netket-3.12.4}/netket/optimizer/qgt/__init__.py +0 -0
  197. {netket-3.12.2 → netket-3.12.4}/netket/optimizer/qgt/common.py +0 -0
  198. {netket-3.12.2 → netket-3.12.4}/netket/optimizer/qgt/default.py +0 -0
  199. {netket-3.12.2 → netket-3.12.4}/netket/optimizer/qgt/qgt_jacobian_dense.py +0 -0
  200. {netket-3.12.2 → netket-3.12.4}/netket/optimizer/qgt/qgt_jacobian_pytree.py +0 -0
  201. {netket-3.12.2 → netket-3.12.4}/netket/optimizer/qgt/qgt_jacobian_pytree_logic.py +0 -0
  202. {netket-3.12.2 → netket-3.12.4}/netket/optimizer/qgt/qgt_onthefly.py +0 -0
  203. {netket-3.12.2 → netket-3.12.4}/netket/optimizer/qgt/qgt_onthefly_logic.py +0 -0
  204. {netket-3.12.2 → netket-3.12.4}/netket/optimizer/solver/__init__.py +0 -0
  205. {netket-3.12.2 → netket-3.12.4}/netket/optimizer/solver/solvers.py +0 -0
  206. {netket-3.12.2 → netket-3.12.4}/netket/optimizer/sr.py +0 -0
  207. {netket-3.12.2 → netket-3.12.4}/netket/sampler/__init__.py +0 -0
  208. {netket-3.12.2 → netket-3.12.4}/netket/sampler/autoreg.py +0 -0
  209. {netket-3.12.2 → netket-3.12.4}/netket/sampler/base.py +0 -0
  210. {netket-3.12.2 → netket-3.12.4}/netket/sampler/exact.py +0 -0
  211. {netket-3.12.2 → netket-3.12.4}/netket/sampler/metropolis.py +0 -0
  212. {netket-3.12.2 → netket-3.12.4}/netket/sampler/metropolis_numpy.py +0 -0
  213. {netket-3.12.2 → netket-3.12.4}/netket/sampler/rules/__init__.py +0 -0
  214. {netket-3.12.2 → netket-3.12.4}/netket/sampler/rules/base.py +0 -0
  215. {netket-3.12.2 → netket-3.12.4}/netket/sampler/rules/continuous_gaussian.py +0 -0
  216. {netket-3.12.2 → netket-3.12.4}/netket/sampler/rules/custom_numpy.py +0 -0
  217. {netket-3.12.2 → netket-3.12.4}/netket/sampler/rules/exchange.py +0 -0
  218. {netket-3.12.2 → netket-3.12.4}/netket/sampler/rules/fixed.py +0 -0
  219. {netket-3.12.2 → netket-3.12.4}/netket/sampler/rules/hamiltonian.py +0 -0
  220. {netket-3.12.2 → netket-3.12.4}/netket/sampler/rules/hamiltonian_numpy.py +0 -0
  221. {netket-3.12.2 → netket-3.12.4}/netket/sampler/rules/langevin.py +0 -0
  222. {netket-3.12.2 → netket-3.12.4}/netket/sampler/rules/local.py +0 -0
  223. {netket-3.12.2 → netket-3.12.4}/netket/sampler/rules/local_numpy.py +0 -0
  224. {netket-3.12.2 → netket-3.12.4}/netket/sampler/rules/multiple.py +0 -0
  225. {netket-3.12.2 → netket-3.12.4}/netket/sampler/rules/tensor.py +0 -0
  226. {netket-3.12.2 → netket-3.12.4}/netket/stats/__init__.py +0 -0
  227. {netket-3.12.2 → netket-3.12.4}/netket/stats/_autocorr.py +0 -0
  228. {netket-3.12.2 → netket-3.12.4}/netket/stats/mc_stats.py +0 -0
  229. {netket-3.12.2 → netket-3.12.4}/netket/stats/mc_stats_old.py +0 -0
  230. {netket-3.12.2 → netket-3.12.4}/netket/stats/mpi_stats.py +0 -0
  231. {netket-3.12.2 → netket-3.12.4}/netket/tools/__init__.py +0 -0
  232. {netket-3.12.2 → netket-3.12.4}/netket/tools/_common.py +0 -0
  233. {netket-3.12.2 → netket-3.12.4}/netket/tools/_cpu_info.py +0 -0
  234. {netket-3.12.2 → netket-3.12.4}/netket/tools/_mpi_info.py +0 -0
  235. {netket-3.12.2 → netket-3.12.4}/netket/tools/check_mpi.py +0 -0
  236. {netket-3.12.2 → netket-3.12.4}/netket/tools/info.py +0 -0
  237. {netket-3.12.2 → netket-3.12.4}/netket/utils/__init__.py +0 -0
  238. {netket-3.12.2 → netket-3.12.4}/netket/utils/_dependencies_check.py +0 -0
  239. {netket-3.12.2 → netket-3.12.4}/netket/utils/array.py +0 -0
  240. {netket-3.12.2 → netket-3.12.4}/netket/utils/config_flags.py +0 -0
  241. {netket-3.12.2 → netket-3.12.4}/netket/utils/deprecation.py +0 -0
  242. {netket-3.12.2 → netket-3.12.4}/netket/utils/dispatch.py +0 -0
  243. {netket-3.12.2 → netket-3.12.4}/netket/utils/display/__init__.py +0 -0
  244. {netket-3.12.2 → netket-3.12.4}/netket/utils/display/repr.py +0 -0
  245. {netket-3.12.2 → netket-3.12.4}/netket/utils/float.py +0 -0
  246. {netket-3.12.2 → netket-3.12.4}/netket/utils/group/__init__.py +0 -0
  247. {netket-3.12.2 → netket-3.12.4}/netket/utils/group/_group.py +0 -0
  248. {netket-3.12.2 → netket-3.12.4}/netket/utils/group/_permutation_group.py +0 -0
  249. {netket-3.12.2 → netket-3.12.4}/netket/utils/group/_point_group.py +0 -0
  250. {netket-3.12.2 → netket-3.12.4}/netket/utils/group/_semigroup.py +0 -0
  251. {netket-3.12.2 → netket-3.12.4}/netket/utils/group/axial.py +0 -0
  252. {netket-3.12.2 → netket-3.12.4}/netket/utils/group/cubic.py +0 -0
  253. {netket-3.12.2 → netket-3.12.4}/netket/utils/group/icosa.py +0 -0
  254. {netket-3.12.2 → netket-3.12.4}/netket/utils/group/planar.py +0 -0
  255. {netket-3.12.2 → netket-3.12.4}/netket/utils/history.py +0 -0
  256. {netket-3.12.2 → netket-3.12.4}/netket/utils/holomorphic.py +0 -0
  257. {netket-3.12.2 → netket-3.12.4}/netket/utils/jax.py +0 -0
  258. {netket-3.12.2 → netket-3.12.4}/netket/utils/model_frameworks/__init__.py +0 -0
  259. {netket-3.12.2 → netket-3.12.4}/netket/utils/model_frameworks/base.py +0 -0
  260. {netket-3.12.2 → netket-3.12.4}/netket/utils/model_frameworks/flax.py +0 -0
  261. {netket-3.12.2 → netket-3.12.4}/netket/utils/model_frameworks/haiku.py +0 -0
  262. {netket-3.12.2 → netket-3.12.4}/netket/utils/model_frameworks/jax.py +0 -0
  263. {netket-3.12.2 → netket-3.12.4}/netket/utils/moduletools.py +0 -0
  264. {netket-3.12.2 → netket-3.12.4}/netket/utils/mpi/__init__.py +0 -0
  265. {netket-3.12.2 → netket-3.12.4}/netket/utils/mpi/gpu_autorank_util.py +0 -0
  266. {netket-3.12.2 → netket-3.12.4}/netket/utils/mpi/mpi.py +0 -0
  267. {netket-3.12.2 → netket-3.12.4}/netket/utils/mpi/primitives.py +0 -0
  268. {netket-3.12.2 → netket-3.12.4}/netket/utils/numbers.py +0 -0
  269. {netket-3.12.2 → netket-3.12.4}/netket/utils/optional_deps.py +0 -0
  270. {netket-3.12.2 → netket-3.12.4}/netket/utils/partial.py +0 -0
  271. {netket-3.12.2 → netket-3.12.4}/netket/utils/plum/__init__.py +0 -0
  272. {netket-3.12.2 → netket-3.12.4}/netket/utils/plum/_version.py +0 -0
  273. {netket-3.12.2 → netket-3.12.4}/netket/utils/plum/alias.py +0 -0
  274. {netket-3.12.2 → netket-3.12.4}/netket/utils/plum/autoreload.py +0 -0
  275. {netket-3.12.2 → netket-3.12.4}/netket/utils/plum/dispatcher.py +0 -0
  276. {netket-3.12.2 → netket-3.12.4}/netket/utils/plum/function.py +0 -0
  277. {netket-3.12.2 → netket-3.12.4}/netket/utils/plum/method.py +0 -0
  278. {netket-3.12.2 → netket-3.12.4}/netket/utils/plum/overload.py +0 -0
  279. {netket-3.12.2 → netket-3.12.4}/netket/utils/plum/parametric.py +0 -0
  280. {netket-3.12.2 → netket-3.12.4}/netket/utils/plum/promotion.py +0 -0
  281. {netket-3.12.2 → netket-3.12.4}/netket/utils/plum/py.typed +0 -0
  282. {netket-3.12.2 → netket-3.12.4}/netket/utils/plum/repr.py +0 -0
  283. {netket-3.12.2 → netket-3.12.4}/netket/utils/plum/resolver.py +0 -0
  284. {netket-3.12.2 → netket-3.12.4}/netket/utils/plum/signature.py +0 -0
  285. {netket-3.12.2 → netket-3.12.4}/netket/utils/plum/type.py +0 -0
  286. {netket-3.12.2 → netket-3.12.4}/netket/utils/plum/util.py +0 -0
  287. {netket-3.12.2 → netket-3.12.4}/netket/utils/seed.py +0 -0
  288. {netket-3.12.2 → netket-3.12.4}/netket/utils/static_number.py +0 -0
  289. {netket-3.12.2 → netket-3.12.4}/netket/utils/static_range.py +0 -0
  290. {netket-3.12.2 → netket-3.12.4}/netket/utils/struct/__init__.py +0 -0
  291. {netket-3.12.2 → netket-3.12.4}/netket/utils/struct/dataclass.py +0 -0
  292. {netket-3.12.2 → netket-3.12.4}/netket/utils/struct/fields.py +0 -0
  293. {netket-3.12.2 → netket-3.12.4}/netket/utils/struct/pytree.py +0 -0
  294. {netket-3.12.2 → netket-3.12.4}/netket/utils/struct/utils.py +0 -0
  295. {netket-3.12.2 → netket-3.12.4}/netket/utils/summation.py +0 -0
  296. {netket-3.12.2 → netket-3.12.4}/netket/utils/timing.py +0 -0
  297. {netket-3.12.2 → netket-3.12.4}/netket/utils/types.py +0 -0
  298. {netket-3.12.2 → netket-3.12.4}/netket/utils/version_check.py +0 -0
  299. {netket-3.12.2 → netket-3.12.4}/netket/vqs/__init__.py +0 -0
  300. {netket-3.12.2 → netket-3.12.4}/netket/vqs/base.py +0 -0
  301. {netket-3.12.2 → netket-3.12.4}/netket/vqs/deprecated.py +0 -0
  302. {netket-3.12.2 → netket-3.12.4}/netket/vqs/experimental.py +0 -0
  303. {netket-3.12.2 → netket-3.12.4}/netket/vqs/full_summ/__init__.py +0 -0
  304. {netket-3.12.2 → netket-3.12.4}/netket/vqs/full_summ/expect.py +0 -0
  305. {netket-3.12.2 → netket-3.12.4}/netket/vqs/full_summ/state.py +0 -0
  306. {netket-3.12.2 → netket-3.12.4}/netket/vqs/mc/__init__.py +0 -0
  307. {netket-3.12.2 → netket-3.12.4}/netket/vqs/mc/common.py +0 -0
  308. {netket-3.12.2 → netket-3.12.4}/netket/vqs/mc/kernels.py +0 -0
  309. {netket-3.12.2 → netket-3.12.4}/netket/vqs/mc/mc_mixed_state/__init__.py +0 -0
  310. {netket-3.12.2 → netket-3.12.4}/netket/vqs/mc/mc_mixed_state/expect.py +0 -0
  311. {netket-3.12.2 → netket-3.12.4}/netket/vqs/mc/mc_mixed_state/expect_chunked.py +0 -0
  312. {netket-3.12.2 → netket-3.12.4}/netket/vqs/mc/mc_mixed_state/state.py +0 -0
  313. {netket-3.12.2 → netket-3.12.4}/netket/vqs/mc/mc_state/__init__.py +0 -0
  314. {netket-3.12.2 → netket-3.12.4}/netket/vqs/mc/mc_state/expect.py +0 -0
  315. {netket-3.12.2 → netket-3.12.4}/netket/vqs/mc/mc_state/expect_chunked.py +0 -0
  316. {netket-3.12.2 → netket-3.12.4}/netket/vqs/mc/mc_state/expect_forces.py +0 -0
  317. {netket-3.12.2 → netket-3.12.4}/netket/vqs/mc/mc_state/expect_forces_chunked.py +0 -0
  318. {netket-3.12.2 → netket-3.12.4}/netket/vqs/mc/mc_state/expect_grad.py +0 -0
  319. {netket-3.12.2 → netket-3.12.4}/netket/vqs/mc/mc_state/expect_grad_chunked.py +0 -0
  320. {netket-3.12.2 → netket-3.12.4}/netket/vqs/mc/mc_state/state.py +0 -0
  321. {netket-3.12.2 → netket-3.12.4}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: NetKet
3
- Version: 3.12.2
3
+ Version: 3.12.4
4
4
  Summary: Netket : Machine Learning toolbox for many-body quantum systems.
5
5
  Project-URL: homepage, https://www.netket.org
6
6
  Project-URL: documentation, https://netket.readthedocs.io/en/latest/#
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '3.12.2'
16
- __version_tuple__ = version_tuple = (3, 12, 2)
15
+ __version__ = version = '3.12.4'
16
+ __version_tuple__ = version_tuple = (3, 12, 4)
@@ -78,7 +78,7 @@ class EarlyStopping(struct.Pytree, mutable=True):
78
78
  self.baseline = baseline
79
79
  self.monitor = monitor
80
80
 
81
- self._best_val = np.infty
81
+ self._best_val = np.inf
82
82
  self._best_iter = 0
83
83
  self._best_patience_counter = 0
84
84
 
@@ -488,7 +488,7 @@ class FermionOperator2ndBase(DiscreteOperator):
488
488
  del concrete
489
489
 
490
490
  # if operator is real dtype, then just return a copy
491
- if not np.issubdtype(self.dtype, np.complex_):
491
+ if not np.issubdtype(self.dtype, np.complexfloating):
492
492
  return self.copy()
493
493
  else:
494
494
  new = type(self)(self.hilbert, dtype=self.dtype, cutoff=self._cutoff)
@@ -23,7 +23,9 @@ import numpy as np
23
23
  from netket.utils.dispatch import dispatch
24
24
  from netket.jax.sharding import sharding_decorator
25
25
 
26
- Dim = Union[tuple[int], tuple[int, int], tuple[int, int, int]]
26
+ Dim = Union[
27
+ tuple[int], tuple[int, int], tuple[int, int, int], tuple[int, int, int, int]
28
+ ]
27
29
 
28
30
 
29
31
  @dispatch
@@ -88,17 +90,6 @@ def random_state(hilb, key, size: int, *, dtype): # noqa: F811
88
90
  )
89
91
 
90
92
 
91
- @dispatch
92
- def random_state(hilb, key, size: None, *, dtype): # noqa: F811
93
- return random_state(hilb, key, 1, dtype=dtype)[0]
94
-
95
-
96
- @dispatch
97
- def random_state(hilb, key, size: Dim, *, dtype): # noqa: F811
98
- n = int(np.prod(size))
99
- return random_state(hilb, key, n, dtype=dtype).reshape(*size, -1)
100
-
101
-
102
93
  def flip_state(hilb, key, state, indices):
103
94
  r"""
104
95
  Given a state `σ` and an index `i`, randomly flips `σ[i]` so that
@@ -27,46 +27,38 @@ class SpecialHamiltonian(DiscreteOperator):
27
27
  def __add__(self, other):
28
28
  if type(self) is type(other):
29
29
  res = self.copy()
30
- res += other
31
- return res
30
+ res = res.__iadd__(other)
31
+ if res is not NotImplemented:
32
+ return res
32
33
 
33
- return self.to_local_operator().__add__(other)
34
+ return self.to_local_operator() + other
34
35
 
35
36
  def __sub__(self, other):
36
37
  if type(self) is type(other):
37
38
  res = self.copy()
38
- res -= other
39
- return res
39
+ res = res.__isub__(other)
40
+ if res is not NotImplemented:
41
+ return res
40
42
 
41
- return self.to_local_operator().__sub__(other)
43
+ return self.to_local_operator() - other
42
44
 
43
45
  def __radd__(self, other):
44
- if type(self) is type(other):
45
- res = self.copy()
46
- res += other
47
- return res
48
-
49
46
  return self.to_local_operator().__radd__(other)
50
47
 
51
48
  def __rsub__(self, other):
52
- if type(self) is type(other):
53
- res = self.copy()
54
- res -= other
55
- return res
56
-
57
49
  return self.to_local_operator().__rsub__(other)
58
50
 
59
51
  def __iadd__(self, other):
60
52
  if type(self) is type(other):
61
- self._iadd_same_hamiltonian(other)
62
- return self
53
+ res = self._iadd_same_hamiltonian(other)
54
+ return res
63
55
 
64
56
  return NotImplemented
65
57
 
66
58
  def __isub__(self, other):
67
59
  if type(self) is type(other):
68
- self._isub_same_hamiltonian(other)
69
- return self
60
+ res = self._isub_same_hamiltonian(other)
61
+ return res
70
62
 
71
63
  return NotImplemented
72
64
 
@@ -81,6 +73,9 @@ class SpecialHamiltonian(DiscreteOperator):
81
73
  other = other.to_local_operator()
82
74
  return self.to_local_operator().__matmul__(other)
83
75
 
76
+ def __neg__(self):
77
+ return -1 * self.to_local_operator()
78
+
84
79
  def _op__rmatmul__(self, other):
85
80
  if hasattr(other, "to_local_operator"):
86
81
  other = other.to_local_operator()
@@ -184,9 +184,12 @@ class IsingBase(SpecialHamiltonian):
184
184
  raise NotImplementedError(
185
185
  "Cannot add hamiltonians on different hilbert spaces"
186
186
  )
187
+ if not np.allclose(self.edges, other.edges):
188
+ return NotImplemented
187
189
 
188
190
  self._h += other.h
189
191
  self._J += other.J
192
+ return self
190
193
 
191
194
  def _isub_same_hamiltonian(self, other):
192
195
  if self.hilbert != other.hilbert:
@@ -194,8 +197,12 @@ class IsingBase(SpecialHamiltonian):
194
197
  "Cannot add hamiltonians on different hilbert spaces"
195
198
  )
196
199
 
200
+ if not np.allclose(self.edges, other.edges):
201
+ return NotImplemented
202
+
197
203
  self._h -= other.h
198
204
  self._J -= other.J
205
+ return self
199
206
 
200
207
  def __repr__(self):
201
208
  return (
@@ -317,7 +317,6 @@ class LocalOperatorBase(DiscreteOperator):
317
317
  self._reset_caches()
318
318
  self._constant += other
319
319
  return self
320
-
321
320
  return NotImplemented
322
321
 
323
322
  def __truediv__(self, other):
@@ -59,12 +59,14 @@ def sanitize_diag_shift(diag_shift, diag_scale, rescale_shift):
59
59
 
60
60
 
61
61
  def to_shift_offset(diag_shift, diag_scale):
62
- if diag_scale == 0.0:
63
- return diag_shift, None
62
+ if not isinstance(diag_scale, jax.Array):
63
+ if diag_scale == 0.0:
64
+ return diag_shift, None
65
+ else:
66
+ return diag_scale, diag_shift / diag_scale
64
67
  else:
65
68
  return diag_scale, diag_shift / diag_scale
66
69
 
67
-
68
70
  @partial(jax.jit, static_argnames="ndims")
69
71
  def rescale(centered_oks, offset, *, ndims: int = 1):
70
72
  """
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