Skip to content

Commit

Permalink
Merge pull request #216 from dlyongemallo/demo_graph_numbering_comment
Browse files Browse the repository at this point in the history
Add comment to note quirk about qubit numbering of the demo graph.
  • Loading branch information
jvdwetering authored Dec 17, 2023
2 parents 08f309d + bbedea4 commit 15577c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zxlive/construct.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
def construct_circuit() -> GraphT:
qubits = 4

# Note: The qubit numbers in the graph which is returned from this function
# will be 4 plus the numbers in vlist and elist, since the input nodes are
# numbered from 0 to 3.

# id, qubit number, vertex type (1 = Z, 2 = X).
vlist = [
(0, 0, 1), (1, 1, 2), (2, 2, 1), (3, 3, 1), (4, 0, 1), (5, 1, 1),
Expand Down

0 comments on commit 15577c8

Please sign in to comment.