Skip to content

Results are limited to Maximum Independent Set v0.2.3

Product news
You are reading Maximum Independent Set v0.2.3, an older version of this documentation. Go to the latest version (v0.3.2)

mis.pipeline.layout

module
mis.pipeline.layout

Classes

  • Layout — A 2D layout class for quantum layout embedding.

class
Layout (data: MISInstance | dict[int, tuple[float, float]], rydberg_blockade: float)

A 2D layout class for quantum layout embedding.

Accepts either

  • dict[int, tuple[float, float]] of coordinates mapping from node (int) to physical coordinates (x, y) UNIT = "µm"
  • MISInstance (graph)

Methods

classmethod
from_device (data: MISInstance | dict[int, tuple[float, float]], device: Device) → Layout

Creates a Layout using device.min_atom_distance as the blockade, and rescales coordinates so no pair is too close.

method
draw () → None

method
num_nodes () → int

method
grid_size () → int