Skip to main content

initialize

Method of SSESimulation.

Overloads

NameDescription
initialize(const BasisState state, const List<integer> actions) -> SSESimulationInitializes the simulation using the heat bath algorithm with the conservative scattering function. Should be called after all vertices have been added.
initialize(const BasisState state, const List<integer> actions, const List table_data) -> SSESimulationInitializes the simulation with a scattering table provided as a flat list of entries. Each entry is a list [probability, action_id, vertex_id, diagonal], or an empty list for a null entry. Should be called after all vertices have been added.

initialize(const BasisState state, const List<integer> actions) -> SSESimulation

Initializes the simulation using the heat bath algorithm with the conservative scattering function. Should be called after all vertices have been added.

Parameters

  • state: A product state that serves as the starting point for the simulation.
  • actions: Allowed actions for the loop update.

initialize(const BasisState state, const List<integer> actions, const List table_data) -> SSESimulation

Initializes the simulation with a scattering table provided as a flat list of entries. Each entry is a list [probability, action_id, vertex_id, diagonal], or an empty list for a null entry. Should be called after all vertices have been added.

Parameters

  • state: A product state that serves as the starting point for the simulation.
  • actions: Allowed actions for the loop update.
  • table_data: Flat list of scattering table entries.