qml.estimator.compact_hamiltonian.VibrationalHamiltonian¶
- class VibrationalHamiltonian(num_modes, grid_size, taylor_degree, one_norm=None)[source]¶
Bases:
objectFor a vibrational Hamiltonian, stores the minimum necessary information pertaining to resource estimation.
The form of this Hamiltonian is described in arXiv:2504.10602.
- Parameters:
num_modes (int) – number of vibrational modes
grid_size (int) – number of grid points used to discretize each mode
taylor_degree (int) – degree of the Taylor expansion used in the vibrational representation
one_norm (float | None) – the one-norm of the Hamiltonian
- Raises:
TypeError – if
num_modes,grid_size, ortaylor_degreeis not a positive integerTypeError – if
one_normis provided but is not a non-negative float or integer
See also
TrotterVibrationalAttributes
code/api/pennylane.estimator.compact_hamiltonian.VibrationalHamiltonian
Download Python script
Download Notebook
View on GitHub