#[non_exhaustive]pub enum CXConfigType {
Snake,
Star,
Tree,
MultiQGate,
}
Expand description
Available configurations for CXs upon decompose phase gadgets
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.
Snake
Linear nearest neighbour CX sequence. Linear depth.
Star
Every CX has same target, linear depth, good for gate cancellation.
Tree
Balanced tree: logarithmic depth, harder to route.
MultiQGate
Support for multi-qubit architectures, decomposing to 3-qubit XXPhase3 gates instead of CXs where possible.
Trait Implementations§
Source§impl Clone for CXConfigType
impl Clone for CXConfigType
Source§fn clone(&self) -> CXConfigType
fn clone(&self) -> CXConfigType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CXConfigType
impl Debug for CXConfigType
Source§impl Default for CXConfigType
impl Default for CXConfigType
Source§fn default() -> CXConfigType
fn default() -> CXConfigType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CXConfigType
impl<'de> Deserialize<'de> for CXConfigType
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
Source§impl PartialEq for CXConfigType
impl PartialEq for CXConfigType
Source§impl Serialize for CXConfigType
impl Serialize for CXConfigType
impl StructuralPartialEq for CXConfigType
Auto Trait Implementations§
impl Freeze for CXConfigType
impl RefUnwindSafe for CXConfigType
impl Send for CXConfigType
impl Sync for CXConfigType
impl Unpin for CXConfigType
impl UnwindSafe for CXConfigType
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