BatchedRestart

class jaxrens.init.restart.BatchedRestart(positions, types, cells, symbol_map, bundles_2d, n_gpu, n_per_gpu)[source]

Bases: object

Multi-replica restart payload, flat (n_total, K, ...) layout.

Consumed by _resolve_multi_replica to seed both live-walker arrays and per-replica NS-state. bundles_2d is the (n_gpu, n_per_gpu) nested list that run_ns_multi_gpu(restart_states=...) expects; bundles_flat is the same data ordered as a length-n_total list for run_ns_parallel.

Variables:
  • positions (jax.jaxlib._jax.Array) – Live-walker positions, shape (n_total, K, n_atoms, 3).

  • types (jax.jaxlib._jax.Array) – Species, shape (n_total, K, n_atoms) — sliced per replica from the stored array so it matches positions/cells in leading dim.

  • cells (jax.jaxlib._jax.Array) – Periodic cells, shape (n_total, K, 3, 3).

  • symbol_map (dict[int, str]) – Atomic-number → element-symbol mapping.

  • bundles_2d (list[list[RestartBundle]]) – Per-replica NS-state, nested list shape (n_gpu, n_per_gpu).

  • n_gpu (int) – GPU dimension recovered from the checkpoint shape.

  • n_per_gpu (int) – Per-GPU replica count recovered from the checkpoint shape.

Parameters: