BaseTransformer#
- class BaseTransformer[source]#
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)[source]#
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)[source]#
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