Skip to content

Commit

Permalink
Add support for Spider QASM as option for Input Circuit.
Browse files Browse the repository at this point in the history
See zxcalc/pyzx#192 for context.
  • Loading branch information
dlyongemallo committed Dec 21, 2023
1 parent 6c4bdda commit 1b7f64c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zxlive/edit_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from PySide6.QtCore import Signal
from PySide6.QtGui import QAction
from PySide6.QtWidgets import (QToolButton)
from pyzx import EdgeType, VertexType
from pyzx import EdgeType, VertexType, sqasm
from pyzx.circuit.qasmparser import QASMParser
from pyzx.symbolic import Poly

Expand Down Expand Up @@ -78,6 +78,7 @@ def _input_circuit(self) -> None:
new_g = copy.deepcopy(self.graph_scene.g)
try:
circ = QASMParser().parse(qasm, strict=False).to_graph()
# circ = sqasm(qasm)
except TypeError as err:
show_error_msg("Invalid circuit", str(err))
return
Expand Down

0 comments on commit 1b7f64c

Please sign in to comment.