qml.labs.trotter_error¶
Module containing functionality for computing Trotter error.
Warning
This module is experimental. Frequent changes will occur, with no guarantees of stability or backwards compatibility.
Trotter Base Classes¶
Abstract classes specifying the methods needed for implementing fragments and states in the Trotter error workflow.
Abstract class used to define a state object for product formula error estimation. |
|
|
Abstract class used to define a fragment object for product formula error estimation. |
Fragment Classes¶
Classes representing fragments of different types of Hamiltonians.
|
Abstract class used to define a generic fragment object for product formula error estimation. |
|
Implements a dictionary of |
|
Represents a linear combination of |
Realspace Hamiltonian Classes¶
Classes used to store representations of realspace Hamiltonians.
|
Lightweight representation of a tensor of coefficients. |
|
Represents a linear combination of a product of position and momentum operators. |
Fragment Functions¶
Functions used to retrieve fragments of various Hamiltonians.
|
Instantiates |
|
Returns a list of fragments summing to a vibrational Hamiltonian. |
|
Returns a list of fragments summing to a vibronic Hamiltonian. |
Harmonic Oscillator Classes¶
Classes used to construct the representation of harmonic oscillator states.
|
Represent a wavefunction in the harmonic oscillator basis. |
|
Represent the tensor product of harmonic oscillator states. |
Error Estimation Functions¶
Functions for computing Trotter error estimates.
|
Computes the perturbation theory error using the second-order Trotter error operator. |
|
Compute the second-order Trotter error operator. |