Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add missing CnRx CnRz ops #49

Merged
merged 1 commit into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading