Closed gwwatkin closed 3 years ago
Give to each PauliProductOperation in the circuit a name like A,B,C .... and then draw the dependency graph:
PauliProductOperation
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}
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.
tikz
Give to each
PauliProductOperation
in the circuit a name like A,B,C .... and then draw the dependency graph:This was made with: