BaseTransformer#
- class BaseTransformer[ソース]#
ベースクラス:
ABCThe interface for implementing methods which map from one
BaseProblemto another. These methods may affect the size of the Hilbert space.Methods
- abstract transform(problem)[ソース]#
Transforms one
BaseProbleminto another. This may affect the size of the Hilbert space.- パラメータ:
problem (BaseProblem) – the problem to be transformed.
- 例外:
NotImplementedError – when an unsupported problem type is provided.
- 戻り値:
A new BaseProblem instance.
- 戻り値の型:
- abstract transform_hamiltonian(hamiltonian)[ソース]#
Transforms one
Hamiltonianinto another. This may affect the size of the Hilbert space.- パラメータ:
hamiltonian (Hamiltonian) – the hamiltonian to be transformed.
- 例外:
NotImplementedError – when an unsupported hamiltonian type is provided.
- 戻り値:
A new Hamiltonian instance.
- 戻り値の型:
Hamiltonian