You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running serialize::pytket::tests::encoded_circuit_roundtrip on it, the final result is
graph LR
subgraph 0 ["(0) Module"]
direction LR
subgraph 1 ["(1) [**FuncDefn: #quot;discard_first_qubit#quot;**]"]
direction LR
style 1 stroke:#832561,stroke-width:3px
7["(7) Input"]
8["(8) Output"]
9["(9) tket.quantum.X"]
10["(10) tket.quantum.Measure"]
11["(11) tket.quantum.QFree"]
7--"0:0<br>qubit"-->10
7--"1:0<br>qubit"-->9
9--"0:0<br>qubit"-->11
10--"0:0<br>qubit"-->8
end
end
Loading
Notice that we're connecting q1 to the output rather than q2. We need to track the ignored qubits on the pytket circuit somehow, (or again just put them on the CircuitInfo)
Test case:
After running
serialize::pytket::tests::encoded_circuit_roundtripon it, the final result isgraph LR subgraph 0 ["(0) Module"] direction LR subgraph 1 ["(1) [**FuncDefn: #quot;discard_first_qubit#quot;**]"] direction LR style 1 stroke:#832561,stroke-width:3px 7["(7) Input"] 8["(8) Output"] 9["(9) tket.quantum.X"] 10["(10) tket.quantum.Measure"] 11["(11) tket.quantum.QFree"] 7--"0:0<br>qubit"-->10 7--"1:0<br>qubit"-->9 9--"0:0<br>qubit"-->11 10--"0:0<br>qubit"-->8 end endNotice that we're connecting
q1to the output rather thanq2. We need to track the ignored qubits on the pytket circuit somehow, (or again just put them on the CircuitInfo)