Launch¶
Run DMRG to find the ground state of a Hamiltonian MPO.
run
¶
Run DMRG to find the ground state of a Hamiltonian MPO.
Performs alternating forward and backward half-sweeps, optimising each site tensor with the Davidson eigensolver, until the energy converges or the maximum number of sweeps is reached.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mps
|
MPS
|
Initial MPS state. Canonicalised in-place to |
required |
mpo
|
MPO
|
Hamiltonian MPO of the same length as |
required |
opts
|
Optional[Options]
|
Run options. Defaults to |
None
|
Returns:
| Type | Description |
|---|---|
Summary
|
Ground-state energy, optimised MPS, energy history, and convergence information. |
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
If |
ValueError
|
If |
See Also¶
- Options — configure the run.
- Summary — interpret the output.
- build_hamiltonian — create the
mpoargument. - DMRG examples