loom.cliffordsim.moment_queue

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.moment_queue.MomentFactory[source]

Bases: object

This object is in charge of creating Moment Objects.

static create_moment(input_operations, time_step)[source]

Create a Moment object from a list of Operation objects.

Return type:

Moment

class loom.cliffordsim.moment_queue.MomentQueue(input_operations, parallelize=False)[source]

Bases: object

This object takes an input of a list of Operation objects, creates a Moment objects based on the list then manages the sequence of Moment objects.

The Moment objects will then be sent to the Tableau and transform the internal representation.

property input_operations: list[Operation]

The list of Operation objects that are to be converted into Moment objects.

reset_queue()[source]

Resets the queue to contain all the instructions again.