Skip to content
Pasqal Documentation

mis.pipeline.embedder

module
mis.pipeline.embedder

Tools to prepare the geometry (register) of atoms.

Classes

  • BaseEmbedder Abstract base class for all embedders.

  • DefaultEmbedder A simple embedder

  • OptimizedEmbedder An embedder using constrained optimization (via Sequential Least Squares Programming (SLSQP)) to find coordinates that respect device constrained after the DefaultEmbedder.

class
BaseEmbedder ()

Bases : ABC

Abstract base class for all embedders.

Prepares the geometry (register) of atoms based on the MISinstance. Returns a Register compatible with Pasqal/Pulser devices.

Methods

  • embed Creates a layout of atoms as the register.

method
embed (instance: MISInstance, config: SolverConfig, backend: BaseBackend) → Register

Creates a layout of atoms as the register.

Returns

  • Register The register.

class
DefaultEmbedder ()

Bases : BaseEmbedder

A simple embedder

Methods

method
embed (instance: MISInstance, config: SolverConfig, backend: BaseBackend) → Register

class
OptimizedEmbedder ()

Bases : BaseEmbedder

An embedder using constrained optimization (via Sequential Least Squares Programming (SLSQP)) to find coordinates that respect device constrained after the DefaultEmbedder.

We try at most 10 times to run the optimization to find a suitable embedding.

Methods

method
embed (instance: MISInstance, config: SolverConfig, backend: BaseBackend) → Register

Raises

  • ValueError