Implement a grid template #244
Labels
backend
Issue pertaining to the Python backend (tqec package)
enhancement
New feature or request, may not be in the task flow
Is your feature request related to a problem? Please describe.
For the moment, we can limit ourselves to regular grids of templates (that will likely represent logical qubits). There is nothing in the code that is explicitly here to build such a grid.
Describe the solution you'd like
Constructing a
GridTemplate
should be quite easy with theComposedTemplate
class.Describe alternatives you've considered
Having a specific implementation for a grid, just like
StackedTemplate
andShiftedTemplate
are not implemented usingComposedTemplate
(because it does not provide the necessary features) but rather directly as a subclass ofTemplate
with a specific behaviour. Turns out that a grid should be describable quite easily with aComposedTemplate
, so this alternative has not been explored.The text was updated successfully, but these errors were encountered: