latticesurgery-com / lattice-surgery-compiler

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

Dependency Graph LaTex Drawing #88

Closed gwwatkin closed 3 years ago

gwwatkin commented 3 years ago

Give to each PauliProductOperation in the circuit a name like A,B,C .... and then draw the dependency graph:

Screenshot_20210424_040417

This was made with:

\usepackage{tikz-cd}

\begin{tikzcd}
 & A\arrow[to=2-3]\arrow[to=2-1] & & &\\
 B\arrow[to=3-1] & & C\arrow[to=3-4] & &\\
 D & & & E\arrow[to=4-3]\arrow[to=4-5]&\\
 & & F& & G\\
\end{tikzcd}
alexnguyenn commented 3 years ago

This might be complicated since we are no longer referencing to the operations in the circuit with their indices (in the DAG). Also there is the problem of layering the DAG so that tikz can render it properly.