batch_simulate#
- torchspin.batch_simulate(simulator, systems, exp, opt=None, *, weights=None, return_individual=True, **kwargs)[source]#
Dispatch batch simulation to the appropriate simulator.
- Parameters:
simulator (str) – One of
'pepper','garlic','chili','saffron'.systems (Sequence[SpinSystem]) – List of SpinSystems to simulate.
exp – Experiment parameters (type depends on simulator).
opt – Options (type depends on simulator).
weights (Sequence[float] | None) – Per-system weights for summing.
return_individual (bool) – If True, return all individual spectra stacked.
**kwargs – Additional keyword arguments passed to the simulator.
- Returns:
x, spectra – Field/frequency axis and spectra (stacked or summed).
- Return type: