run¶
Top-level TgTRG entry point.
run
¶
Cool a thermal density matrix along the β grid the options describe.
Starts at state.step and continues to opts.n_steps, cooling by one
tangent-space sweep per step. Building ρ(τ₀) (e.g. via thermal_mpo)
and wrapping it in an Artifact at step=0 is the caller's
responsibility. Resuming an interrupted run, or continuing a finished
one under new options — the second phase of a stacked exponential-then-
linear schedule, say — is calling run() again with the Artifact
loaded from tgtrg.ckpt or from any archived
artifacts/step_XXXXX.ckpt; the matching history is recovered from
thermal.ckpt in opts.checkpoint_dir.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state
|
Artifact
|
Starting density matrix, paired with its |
required |
mpo
|
MPO
|
Hamiltonian MPO. Needed at every step, unlike XTRG, where the
squaring never refers back to |
required |
opts
|
Optional[Options]
|
Run options. Defaults to |
None
|
Returns:
| Type | Description |
|---|---|
Summary
|
Thermodynamic history (β grid, log Z, derived observables). Written
to |
Artifact
|
Final density matrix with its |
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
NotImplementedError
|
If |
FileNotFoundError
|
If |