From 09a5d439c23809d4f897a5b7b869732ece8d2cc5 Mon Sep 17 00:00:00 2001 From: hannah-mcdougall Date: Mon, 8 Jul 2024 14:39:45 +0100 Subject: [PATCH] feat: handle legacy tk1 optype (#54) add support to prevent failure when getting circuits with legacy tk1 optype Co-authored-by: Hannah McDougall --- 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`].