Skip to content

Commit

Permalink
fix(phirgen): Reset is translated to Init
Browse files Browse the repository at this point in the history
  • Loading branch information
qartik committed Nov 7, 2023
1 parent 1e762d2 commit 2babd34
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pytket/phir/phirgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
UINTMAX = 2**32 - 1

tket_gate_to_phir = {
tk.OpType.Reset: "Init",
tk.OpType.Measure: "Measure",
tk.OpType.noop: "I",

tk.OpType.CX: "CX",
tk.OpType.CY: "CY",
tk.OpType.CZ: "CZ",
tk.OpType.H: "H",
tk.OpType.PhasedX: "R1XY",
tk.OpType.Reset: "Reset", # TODO(kartik): confirm with Ciaran/spec
# https://github.com/CQCL/phir/blob/main/phir_spec_qasm.md
tk.OpType.Rx: "RX",
tk.OpType.Ry: "RY",
tk.OpType.Rz: "RZ",
Expand All @@ -45,8 +45,6 @@
tk.OpType.Z: "Z",
tk.OpType.ZZMax: "SZZ",
tk.OpType.ZZPhase: "RZZ",

tk.OpType.Measure: "Measure",
} # fmt: skip


Expand Down

0 comments on commit 2babd34

Please sign in to comment.