pub struct RotationMergingPass {}Expand description
Greedily merges Pauli rotations with the same Pauli string when possible.
Consider running the CanonicalFormPass first.
§Panics
The supported operations are Op::Rotation, Op::Measure,
Op::Reset, Op::ConditionalBox, Op::BlackBox, Op::Tableau,
and Op::SetBoundary. The pass panics if the graph contains any other
operation, or if a conditional box contains an operation other than
Op::Rotation, Op::Reset, or Op::Measure.
Implementations§
Trait Implementations§
Source§impl Default for RotationMergingPass
impl Default for RotationMergingPass
Source§impl PGPass for RotationMergingPass
impl PGPass for RotationMergingPass
Source§fn transform(&self, pg: &PauliGraph) -> PauliGraph
fn transform(&self, pg: &PauliGraph) -> PauliGraph
Produces a transformed Pauli graph from the provided input graph.
Auto Trait Implementations§
impl Freeze for RotationMergingPass
impl RefUnwindSafe for RotationMergingPass
impl Send for RotationMergingPass
impl Sync for RotationMergingPass
impl Unpin for RotationMergingPass
impl UnsafeUnpin for RotationMergingPass
impl UnwindSafe for RotationMergingPass
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more