latticesurgery-com / lattice-surgery-compiler

Lattice surgery quantum error correction compiler
https://latticesurgery.com
GNU Lesser General Public License v2.1
46 stars 6 forks source link

[Feature Request] Add layout spec and distillation times to LLI #283

Open gwwatkin opened 2 years ago

gwwatkin commented 2 years ago

Issue Description

Background

The Slicer https://github.com/latticesurgery-com/liblsqecc reads a layout spec and LLI from two separate files

Proposed Solution

Add an LLI instruction that looks like this Something like this

DeclareLogicalQubitPatches 0,1,2,3,4,5,6,7,8,9
Layout 8x9
rrrrr111
QrQQr111
QrQQr111
rrrrr222
QrQQr222
QrQAr222
rrrrr333
44444333
44444333
DistillationTime 10,10,10,8
... More LLI

Where the distillation times are assigned to the distillation regions encountered in row major order