Skip to content

Commit d26bf3e

Browse files
committed
adapt to latest eqasm update.
1 parent ba1daad commit d26bf3e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tensorcircuit/translation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,8 @@ def eqasm2tc(
735735
elif inst_list[2] == "-Z/2":
736736
c.rz(*index, theta=np.pi / 2) # type: ignore
737737
# TODO(@refraction-ray): Z/2 convention to be double checked
738+
elif inst_list[2].startswith("MEAS"):
739+
continue
738740
else:
739741
gate_name = inst_list[2].lower()
740742
if len(inst_list) == 4:

0 commit comments

Comments
 (0)