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