pub enum PauliSynthStrategy {
Individual,
Pairwise,
Sets,
Greedy,
}Expand description
Strategy for synthesising Pauli gadgets.
Variants§
Individual
Synthesise gadgets individually.
Pairwise
Synthesise gadgets pairwise.
Based on Cowtan et. al. https://arxiv.org/abs/1906.01734
Sets
Synthesise gadgets in commuting sets.
Greedy
Synthesise gadgets using a greedy algorithm adapted from https://arxiv.org/abs/2103.08602.
This strategy is currently only accepted by TermSequenceBox. For synthesising general circuits try using GreedyPauliSimp.
WARNING: This strategy will not preserve the global phase of the circuit.
NOTE: This field is missing from the pytket schema.
Trait Implementations§
Source§impl Clone for PauliSynthStrategy
impl Clone for PauliSynthStrategy
Source§fn clone(&self) -> PauliSynthStrategy
fn clone(&self) -> PauliSynthStrategy
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 PauliSynthStrategy
impl Debug for PauliSynthStrategy
Source§impl<'de> Deserialize<'de> for PauliSynthStrategy
impl<'de> Deserialize<'de> for PauliSynthStrategy
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 PauliSynthStrategy
impl PartialEq for PauliSynthStrategy
Source§impl Serialize for PauliSynthStrategy
impl Serialize for PauliSynthStrategy
impl Eq for PauliSynthStrategy
impl StructuralPartialEq for PauliSynthStrategy
Auto Trait Implementations§
impl Freeze for PauliSynthStrategy
impl RefUnwindSafe for PauliSynthStrategy
impl Send for PauliSynthStrategy
impl Sync for PauliSynthStrategy
impl Unpin for PauliSynthStrategy
impl UnwindSafe for PauliSynthStrategy
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