MergeResult#

class ssip.merge_result.MergeResult(Code: CSScode, MergeMap: ndarray[Any, dtype[uint8]], NewZStabs: list, NewXStabs: list, NewQubits: list, NewZLogicals: list, NewXLogicals: list, OldZLogicals: list, OldXLogicals: list)[source]#

Bases: object

A collection of data which informs the user about a merge, or multiple merges, which were performed.

Code#

The output merged code.

Type:

ssip.basic_functions.CSScode

MergeMap#

The map on qubits from the input to output code.

Type:

numpy.ndarray[Any, numpy.dtype[numpy.uint8]]

NewZStabs#

The indices of any new Z stabiliser generators.

Type:

list

NewXStabs#

The indices of any new X stabiliser generators.

Type:

list

NewQubits#

The indices of any new data qubits.

Type:

list

NewZLogicals#

A basis for the space of new Z logicals

Type:

list

introduced by the merge, if there are any.
NewXLogicals#

A basis for the space of new X logicals

Type:

list

introduced by the merge, if there are any.
OldZLogicals#

A basis for the space of old Z logicals

Type:

list

retained by the merge, if there are any.
OldXLogicals#

A basis for the space of old X logicals

Type:

list

retained by the merge, if there are any.

Methods

Attributes