Documentation
¶
Overview ¶
Package trotter implements Trotter-Suzuki Hamiltonian simulation.
Given a Hamiltonian H = sum_k c_k P_k expressed as a PauliSum, the algorithm approximates the time-evolution operator e^{-iHt} by decomposing it into a product of single-term exponentials.
First-order (Lie-Trotter):
e^{-iHt} ~ [prod_k e^{-i c_k P_k dt/steps}]^steps
Second-order (Suzuki-Trotter):
e^{-iHt} ~ [prod_k e^{-i c_k P_k dt/(2*steps)} * prod_k' e^{-i c_k' P_k' dt/(2*steps)}]^steps
where the second product runs in reverse order.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Hamiltonian is the operator to simulate, expressed as a sum of Pauli strings.
Hamiltonian pauli.PauliSum
// Time is the total evolution time t in e^{-iHt}.
Time float64
// Steps is the number of Trotter steps (higher = more accurate). Default: 1.
Steps int
// Order is the Trotter decomposition order. Default: First.
Order Order
}
Config specifies the Trotter simulation parameters.
Click to show internal directories.
Click to hide internal directories.