loom.cliffordsim.invoker

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.invoker.Invoker(input_tableau, pauli_frames_forward, pauli_frames_backward, data_store, registry)[source]

Bases: object

The main role of the Invoker is to handle the interactions between an input Moment, the Tableau, PauliFrames and DataStore.

transform_pf(input_moment)[source]

Transform the pauli frames according to the input moment. The data_store is also passed to the moment’s transform_pf method to record any potential output pauli frame state.

Return type:

bool

transform_pf_back(input_moment)[source]

Transform the pauli frames backwards according to the input moment. The data_store is also passed to the moment’s transform_pf_back method to record any potential output pauli frame state.

Return type:

bool

transform_tab(input_moment)[source]

Transform the input_tableau according to the input moment. The data_store and registry are also passed to the moment’s transform_tab method to record any potential output measurement and allow for classical control.

Return type:

bool