BaseTransformer#
- class BaseTransformer[ソース]#
ベースクラス:
ABC
The interface for implementing methods which map from one
BaseProblem
to another. These methods may affect the size of the Hilbert space.Methods
- abstract transform(problem)[ソース]#
Transforms one
BaseProblem
into 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
Hamiltonian
into 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