diff --git a/src/opbox.rs b/src/opbox.rs index 10862a6..ae8f30e 100644 --- a/src/opbox.rs +++ b/src/opbox.rs @@ -117,7 +117,7 @@ pub enum OpBox { /// The phase polynomial definition. /// Represented by a map from bitstring to expression of coefficient. phase_polynomial: Vec>, - /// + /// The additional linear transformation. linear_transformation: Matrix, }, /// A user-defined assertion specified by a list of Pauli stabilisers. diff --git a/src/optype.rs b/src/optype.rs index f851393..9a9877e 100644 --- a/src/optype.rs +++ b/src/optype.rs @@ -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,