qp.labs.trotter_error¶
This module contains tools for estimating the Trotter error of product formulas used in Hamiltonian simulation.
Warning
This module is experimental. Frequent changes will occur, with no guarantees of stability or backwards compatibility.
Abstract Base Classes¶
|
Abstract class used to define a fragment object for product formula error estimation. |
Abstract class used to define a state object for perturbation error estimation. |
Fragments¶
|
A wrapper class for NumPy arrays to be used in the Trotter error functions |
|
State wrapper for Numpy objects. |
|
A wrapper class for scipy sparse matrices to be used in the Trotter error functions. |
|
A wrapper class to allow scipy sparse vectors to be used in the Trotter error estimation functions. |
|
Returns a list of fragments summing to a vibrational Hamiltonian. |
|
Returns a list of fragments summing to a vibronic Hamiltonian. |
Product Formulas¶
|
A symbolic representation of a product formula for Hamiltonian simulation. |
|
Enable the importance sampling feature of |
|
Return the Baker--Campbell--Hausdorff (BCH) expansion of a product formula. |
|
Compute the effective Hamiltonian \(\hat{H}_{eff} = \hat{H} + \hat{\epsilon}\) that corresponds to a given product formula. |
|
Computes the perturbation theory error using the effective Hamiltonian \(\hat{H}_{eff} = \hat{H} + \hat{\epsilon}\) for a given product formula. |
Realspace Representations¶
|
Represent a wavefunction in the harmonic oscillator basis. |
|
Represent the tensor product of harmonic oscillator states. |
|
Lightweight representation of a tensor of coefficients of a real space operator. |
|
Implements a dictionary of |
|
Represents a linear combination of a product of position and momentum operators. |
|
Represents a linear combination of |