Skip to content

Commit

Permalink
fix: Add missing CnRx CnRz ops (#49)
Browse files Browse the repository at this point in the history
Closes #46 

drive-by: Fix clippy lint due to missing doc
  • Loading branch information
aborgna-q authored Jul 5, 2024
1 parent a5ee6e3 commit 60f1c21
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/opbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ pub enum OpBox {
/// The phase polynomial definition.
/// Represented by a map from bitstring to expression of coefficient.
phase_polynomial: Vec<Vec<(Bitstring, String)>>,
///
/// The additional linear transformation.
linear_transformation: Matrix,
},
/// A user-defined assertion specified by a list of Pauli stabilisers.
Expand Down
10 changes: 7 additions & 3 deletions src/optype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,15 @@ pub enum OpType {
// TODO: Matrix description
PhasedISWAP,

/// Multiply-controlled [`OpType::Ry`]
///
/// The phase parameter is defined modulo \f$ 4 \f$.
/// N-controlled [`OpType::Rx`]
CnRx,

/// N-controlled [`OpType::Ry`]
CnRy,

/// N-controlled [`OpType::Rz`]
CnRz,

/// Multiply-controlled [`OpType::X`]
CnX,

Expand Down

0 comments on commit 60f1c21

Please sign in to comment.