ConjugationTrait

Trait ConjugationTrait 

Source
pub trait ConjugationTrait: Sized {
    // Required method
    fn conjugate(&self) -> Self;
}
Expand description

Helper trait to allow hermitian conjugation of values Should eventually be ported to qoqo_calculator like this and be implemented for CalculatorFloat, CaclulatorComplex, f64 and Complexf64

Required Methods§

Source

fn conjugate(&self) -> Self

Conjugates all values in Self.

§Returns
  • Self - The conjugated version of Self.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ConjugationTrait for CalculatorFloat

Source§

fn conjugate(&self) -> Self

Source§

impl ConjugationTrait for CalculatorComplex

Source§

fn conjugate(&self) -> Self

Implementors§