Skip to content

Launch

Run DMRG to find the ground state of a Hamiltonian MPO.

run

run(mps: MPS, mpo: MPO, opts: Optional[Options] = None) -> Summary

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 center = 0 before the first sweep.

required
mpo MPO

Hamiltonian MPO of the same length as mps.

required
opts Optional[Options]

Run options. Defaults to Options() if None.

None

Returns:

Type Description
Summary

Ground-state energy, optimised MPS, energy history, and convergence information.

Raises:

Type Description
NotImplementedError

If opts.scheme is not '1s' (other schemes are planned but not yet implemented).

ValueError

If mps and mpo have different lengths.

See Also