#[non_exhaustive]pub enum ClOp {
Show 29 variants
INVALID,
BitAnd,
BitOr,
BitXor,
BitEq,
BitNeq,
BitNot,
BitZero,
BitOne,
RegAnd,
RegOr,
RegXor,
RegEq,
RegNeq,
RegNot,
RegZero,
RegOne,
RegLt,
RegGt,
RegLeq,
RegGeq,
RegAdd,
RegSub,
RegMul,
RegDiv,
RegPow,
RegLsh,
RegRsh,
RegNeg,
}Expand description
List of supported classical expressions.
Corresponds to pytket.circuit.ClOp.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
INVALID
Invalid operation
BitAnd
Bitwise AND
BitOr
Bitwise OR
BitXor
Bitwise XOR
BitEq
Bitwise equality
BitNeq
Bitwise inequality
BitNot
Bitwise NOT
BitZero
Constant zero bit
BitOne
Constant one bit
RegAnd
Registerwise AND
RegOr
Registerwise OR
RegXor
Registerwise XOR
RegEq
Registerwise equality
RegNeq
Registerwise inequality
RegNot
Registerwise NOT
RegZero
Constant all-zeros register
RegOne
Constant all-ones register
RegLt
Integer less-than comparison
RegGt
Integer greater-than comparison
RegLeq
Integer less-than-or-equal comparison
RegGeq
Integer greater-than-or-equal comparison
RegAdd
Integer addition
RegSub
Integer subtraction
RegMul
Integer multiplication
RegDiv
Integer division
RegPow
Integer exponentiation
RegLsh
Left shift
RegRsh
Right shift
RegNeg
Integer negation
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ClOp
impl<'de> Deserialize<'de> for ClOp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ClOp
impl StructuralPartialEq for ClOp
Auto Trait Implementations§
impl Freeze for ClOp
impl RefUnwindSafe for ClOp
impl Send for ClOp
impl Sync for ClOp
impl Unpin for ClOp
impl UnwindSafe for ClOp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more