BaseTransformer#

class BaseTransformer[source]#

Bases: 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)[source]#

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.

রিটার্ন টাইপ:

BaseProblem

abstract transform_hamiltonian(hamiltonian)[source]#

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