loom.eka.operations.logical_measurement

Copyright (c) Entropica Labs Pte Ltd 2025.

Use, distribution and reproduction of this program in its source or compiled form is prohibited without the express written consent of Entropica Labs Pte Ltd.

class loom.eka.operations.logical_measurement.LogicalMeasurement(*args, **kwargs)[source]

Bases: object

LogicalMeasurement acts as a wrapper to describe the type of logical measurement based on the block(s) involved and the pauli product of the observable. NOTE: Assumes that each block only consist of one logical qubit, and refers only to the latest logical measurement of the block(s).

E.g. LogicalMeasurement((“block0”, “block1”), “ZZ”) describes the joint ZZ measurement between block0 and block1.

Parameters:
  • blocks (tuple[str, ...]) – List of names of blocks that are involved in the logical measurement.

  • observable (str) – Pauli string describing the type of logical measurement.

blocks: tuple[str, ...]
observable: str