BaseTransformer#

class BaseTransformer[fuente]#

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)[fuente]#

Transforms one BaseProblem into 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:

BaseProblem

abstract transform_hamiltonian(hamiltonian)[fuente]#

Transforms one Hamiltonian into 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