Skip to content

Commit

Permalink
feat: handle legacy tk1 optype (#54)
Browse files Browse the repository at this point in the history
add support to prevent failure when getting circuits with legacy tk1
optype

Co-authored-by: Hannah McDougall <[email protected]>
  • Loading branch information
hannah-mcdougall and Hannah McDougall authored Jul 8, 2024
1 parent f97cca7 commit 09a5d43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/optype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`].
Expand Down

0 comments on commit 09a5d43

Please sign in to comment.