Skip to main content
IBM Quantum Platform
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

BosonicBasis

class BosonicBasis

GitHub

Bases: object

Basis to express a second quantization Bosonic Hamiltonian.


Methods

convert

BosonicBasis.convert(threshold=1e-06)

This prepares an array object representing a bosonic hamiltonian expressed in the harmonic basis. This object can directly be given to the BosonicOperator class to be mapped to a qubit hamiltonian.

Parameters

threshold (float) – the matrix elements of value below this threshold are discarded

Return type

List[List[Tuple[List[List[int]], float]]]

Returns

List of modes for input to creation of a bosonic hamiltonian in the harmonic basis

Raises

ValueError – If problem with order value from computed modes

Was this page helpful?
Report a bug or request content on GitHub.