tqec.templates.subtemplates.Unique3DSubTemplates#

class Unique3DSubTemplates(subtemplate_indices: ndarray[Any, dtype[int64]], subtemplates: dict[tuple[int, ...], ndarray[Any, dtype[int64]]])[source]#

Stores information on the sub-templates of a specific spatial radius present on a time concatenation of Template instances.

This class is a generalization of UniqueSubTemplates when several Template instances are concatenated in time. In that case, sub-templates of the last (in time) Template instance are not enough to represent the different “situations” that can be encountered.

subtemplate_indices#

a 3-dimensional array with shape (n, m, t) where (n, m) is the shape of the original Template instantiation and t is the number of time-steps that are considered. This array stores time independent sub-template indices. The 3-dimensional sub-templates indices are all the entries on the third dimension, i.e., t-tuples indexed by 0<=i<n and 0<=j<m.

Type:

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

subtemplates#

a store of sub-template (values) indexed by t-tuples of integers (keys) that link the sub-template center to the original template instantiation thanks to subtemplate_indices.

Type:

dict[tuple[int, …], numpy.ndarray[Any, numpy.dtype[numpy.int64]]]

__init__(subtemplate_indices: ndarray[Any, dtype[int64]], subtemplates: dict[tuple[int, ...], ndarray[Any, dtype[int64]]]) None#

Methods

__init__(subtemplate_indices, subtemplates)

Attributes