How tmisawa/sai-qmc works
SAI-QMC is a command-line finite-temperature determinant quantum Monte Carlo simulator for the half-filled repulsive Hubbard model. The user supplies lattice and run parameters; the executable sets up replicas, warms and measures Monte Carlo chains, then reports scalar observables and optional longitudinal/transverse spin structure factors with statistical errors. The graph separates model setup, simulation numerics, measurement, and execution/output. Relationships inside the replica runner are supported by its excerpt; some wiring in the partially excerpted main program is shown as unverified rather than inferred as a confirmed call.
Main entry points: main.c Run coordinator · replica_run.c Replica runner · structure_factor.c Spin structure factors · field.c Auxiliary field
Components 18
Run and model setup
- Input parser
src/io.c - Lattice
src/lattice.c - Hubbard model
src/model.c
DQMC numerics
- Random generator
src/rng.c - Auxiliary field
src/field.c - DQMC engine
src/dqmc.c - Green functions
src/green.c - Linear algebra
src/linalg.c
Measurement and observables
- Scalar measurements
src/measure.c - Spin structure factors
src/structure_factor.c
Replica execution and output
- Run coordinator
src/main.c - Replica runner
src/replica_run.c - Replica results
src/replica.c - MPI coordination
src/replica_mpi.c - Scalar output
src/scalar_output.c - Run profiler
src/profiler.c
Other components
- Researcher
- Observable files
Connections 18
- Researcher → Run coordinator: starts run
README.md - Run coordinator → Input parser: reads settings
- Run coordinator → Replica runner: dispatches replicas
- Replica runner → Hubbard model: initializes
src/replica_run.c - Replica runner → Auxiliary field: initializes
src/replica_run.c - Replica runner → DQMC engine: initializes and sweeps
src/replica_run.c - Replica runner → Spin structure factors: measures spin
src/replica_run.c - Replica runner → Replica results: accumulates samples
src/replica_run.c - Auxiliary field → Random generator: uses
- DQMC engine → Green functions: updates
- Green functions → Linear algebra: uses
src/green.c - Replica runner → Scalar measurements: samples observables
- Run coordinator → MPI coordination: coordinates MPI
- Run coordinator → Scalar output: writes scalar data
- Run coordinator → Spin structure factors: writes spin data
- Run coordinator → Run profiler: records timings
- Scalar output → Observable files: writes
- Spin structure factors → Observable files: writes