From 16a34bf85170bb24faf4257de1c13b8ea43b47c7 Mon Sep 17 00:00:00 2001 From: Hannah McDougall Date: Mon, 8 Jul 2024 14:29:51 +0100 Subject: [PATCH 1/2] handle legacy tk1 optype --- src/optype.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/optype.rs b/src/optype.rs index 9a9877e..70cdaca 100644 --- a/src/optype.rs +++ b/src/optype.rs @@ -156,10 +156,12 @@ pub enum OpType { /// \f$ \mathrm{TK1}(\alpha, \beta, \gamma) = \mathrm{Rz}(\alpha) /// \mathrm{Rx}(\beta) \mathrm{Rz}(\gamma) \f$ + #[serde(alias = "tk1")] TK1, /// \f$ \mathrm{TK2}(\alpha, \beta, \gamma) = \mathrm{XXPhase}(\alpha) /// \mathrm{YYPhase}(\beta) \mathrm{ZZPhase}(\gamma) \f$ + #[serde(alias = "tk2")] TK2, /// Controlled [`OpType::X`]. From d866088c2d77ddc6fff596a3e8918244e856b38e Mon Sep 17 00:00:00 2001 From: Hannah McDougall Date: Wed, 24 Jul 2024 10:06:40 +0100 Subject: [PATCH 2/2] handle legacy condition optype --- src/optype.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/optype.rs b/src/optype.rs index 70cdaca..5fcfef7 100644 --- a/src/optype.rs +++ b/src/optype.rs @@ -471,6 +471,7 @@ pub enum OpType { PhasePolyBox, /// NYI + #[serde(alias = "Condition")] Conditional, /// See [`StabiliserAssertionBox`]