pub enum CxConfig {
Snake,
Tree,
Star,
MultiQGate,
}Expand description
Preferred CX configuration for gadget construction.
Variants§
Snake
Snake configuration.
Tree
Tree configuration.
Star
Star configuration.
MultiQGate
Support for multi-qubit architectures, decomposing to 3-qubit XXPhase3 gates instead of CXs where possible.
NOTE: This field is missing from the pytket schema.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CxConfig
impl<'de> Deserialize<'de> for CxConfig
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 CxConfig
impl StructuralPartialEq for CxConfig
Auto Trait Implementations§
impl Freeze for CxConfig
impl RefUnwindSafe for CxConfig
impl Send for CxConfig
impl Sync for CxConfig
impl Unpin for CxConfig
impl UnwindSafe for CxConfig
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