Skip to main content

ComplexCoefficient

Trait ComplexCoefficient 

Source
pub trait ComplexCoefficient: Coefficient {
    // Required method
    fn mul_phase(&self, phase: u8) -> Self;
}
Expand description

A Coefficient extended with multiplication by a fourth-root-of-unity phase. Used by PhasedPauliWord.

Required Methods§

Source

fn mul_phase(&self, phase: u8) -> Self

multiply by phase encoded as:

signimag
+100
+i01
-110
-i11

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ComplexCoefficient for Complex<f64>

Source§

fn mul_phase(&self, phase: u8) -> Complex<f64>

Implementors§