loom.cliffordsim.moments.base_moment

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.cliffordsim.moments.base_moment.Moment(input_operations, time_step)[source]

Bases: MomentInterface

A Moment contains a set of instructions that are directly applicable on the Tableau.

transform_pf(input_pauliframes, data_store, **kwargs)[source]

Applies tranformation of Instructions on incoming PauliFrame. Also requires a DataStore that manages information keeping throughout the instruction application process and kwargs to transparently support future extensions.

Return type:

List[PauliFrame]

transform_pf_back(input_pauliframes, data_store, **kwargs)[source]

Applies backwards tranformation of Instructions on incoming PauliFrame. Also requires a DataStore that manages information keeping throughout the instruction application process and kwargs to transparently support future extensions.

Return type:

List[PauliFrame]

transform_tab(input_tableau, data_store, **kwargs)[source]

Applies tranformation of Instructions on incoming Tableau. Also requires a DataStore that manages information keeping throughout the instruction application process and kwargs to transparently support future extensions.

Return type:

Tableau

class loom.cliffordsim.moments.base_moment.MomentInterface[source]

Bases: ABC

An abstract base class for Moments.

abstractmethod transform_tab(input_tableau)[source]

Transform the input tableau and return the transformed tableau.

Return type:

ndarray