# qiskit.chemistry.components.bosonic_bases.bosonic_basis のソースコード

# This code is part of Qiskit.
#
#
# obtain a copy of this license in the LICENSE.txt file in the root directory
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

""" Bosonic Basis """

from typing import List, Tuple

[ドキュメント]class BosonicBasis:
""" Basis to express a second quantization Bosonic Hamiltonian. """

[ドキュメント]    def convert(self, threshold: float = 1e-6) \
-> List[List[Tuple[List[List[int]], float]]]:
"""
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.

Args:
threshold: the matrix elements of value below this threshold are discarded

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
"""

raise NotImplementedError