qml.estimator.compact_hamiltonian.THCHamiltonian¶
- class THCHamiltonian(num_orbitals, tensor_rank, one_norm=None)[source]¶
Bases:
objectFor a tensor hypercontracted (THC) Hamiltonian, stores the minimum necessary information pertaining to resource estimation.
The form of this Hamiltonian is described in arXiv:2407.04432.
- Parameters:
num_orbitals (int) – number of spatial orbitals
tensor_rank (int) – tensor rank of two-body integrals in the tensor hypercontracted (THC) representation
one_norm (float | None) – the one-norm of the Hamiltonian
- Raises:
TypeError – if
num_orbitals, ortensor_rankis not a positive integerTypeError – if
one_normis provided but is not a non-negative float or integer
See also
TrotterTHCAttributes
code/api/pennylane.estimator.compact_hamiltonian.THCHamiltonian
Download Python script
Download Notebook
View on GitHub