qp.estimator.compact_hamiltonian.VibrationalHamiltonian

class VibrationalHamiltonian(num_modes, grid_size, taylor_degree, one_norm=None)[source]

Bases: object

For 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, or taylor_degree is not a positive integer

  • TypeError – if one_norm is provided but is not a non-negative float or integer

See also

TrotterVibrational

grid_size

num_modes

one_norm

taylor_degree

grid_size = <dataclasses._MISSING_TYPE object>
num_modes = <dataclasses._MISSING_TYPE object>
one_norm = None
taylor_degree = <dataclasses._MISSING_TYPE object>