BaseTransformer#
- class BaseTransformer[fuente]#
Bases:
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)[fuente]#
Transforms one
BaseProbleminto another. This may affect the size of the Hilbert space.- Parámetros:
problem (BaseProblem) – the problem to be transformed.
- Muestra:
NotImplementedError – when an unsupported problem type is provided.
- Devuelve:
A new BaseProblem instance.
- Tipo del valor devuelto:
- abstract transform_hamiltonian(hamiltonian)[fuente]#
Transforms one
Hamiltonianinto another. This may affect the size of the Hilbert space.- Parámetros:
hamiltonian (Hamiltonian) – the hamiltonian to be transformed.
- Muestra:
NotImplementedError – when an unsupported hamiltonian type is provided.
- Devuelve:
A new Hamiltonian instance.
- Tipo del valor devuelto:
Hamiltonian