View source on GitHub |
An algorithm for performing a Trotter step.
A Trotter step algorithm contains methods for performing a symmetric or asymmetric Trotter step and their controlled versions. It does not need to support all the possibilities; for instance, it may support only symmetric Trotter steps with no control qubit. Support for a kind of Trotter step is implemented by overriding the methods of this class.
Methods
asymmetric
asymmetric(
hamiltonian: openfermion.circuits.trotter.trotter_algorithm.Hamiltonian
) -> Optional[openfermion.circuits.TrotterStep
]
controlled_asymmetric
controlled_asymmetric(
hamiltonian: openfermion.circuits.trotter.trotter_algorithm.Hamiltonian
) -> Optional[openfermion.circuits.TrotterStep
]
controlled_symmetric
controlled_symmetric(
hamiltonian: openfermion.circuits.trotter.trotter_algorithm.Hamiltonian
) -> Optional[openfermion.circuits.TrotterStep
]
symmetric
symmetric(
hamiltonian: openfermion.circuits.trotter.trotter_algorithm.Hamiltonian
) -> Optional[openfermion.circuits.TrotterStep
]
Class Variables | |
---|---|
supported_types |
|