[][src]Struct brakets::Outer

pub struct Outer<D: DimName>(_)
where
    DefaultAllocator: Allocator<Complex, D, D>
;

Outer product in bra-ket notation, as well used as a linear operatior. You can multiply it by ket to put it in the observable state defined by the operator.

Methods

impl<D: DimName> Outer<D> where
    DefaultAllocator: Allocator<Complex, D, D>, 
[src]

pub fn into_matrix(self) -> MatrixMN<Complex, D, D>[src]

Deconstruct the outer product returning the inner matrix.

pub fn h2() -> Outer<U2>[src]

H2 (2 dim hadamard) operator

pub fn z2() -> Outer<U2>[src]

Z2 (2 dim Z-gate) operator

pub fn n2() -> Outer<U2>[src]

N2 (2 dim N-gate) operator

pub fn cnot() -> Outer<U4>[src]

CNOT (2*2 dim) operator

pub fn qft() -> Outer<D>[src]

Quantum Fourier Transform (QFT) matrix operator

Trait Implementations

impl<D: DimName> From<Matrix<Complex<f64>, D, D, <DefaultAllocator as Allocator<Complex<f64>, D, D>>::Buffer>> for Outer<D> where
    DefaultAllocator: Allocator<Complex, D, D>, 
[src]

impl<D: PartialEq + DimName> PartialEq<Outer<D>> for Outer<D> where
    DefaultAllocator: Allocator<Complex, D, D>, 
[src]

impl<D: Clone + DimName> Clone for Outer<D> where
    DefaultAllocator: Allocator<Complex, D, D>, 
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<D: DimName> Display for Outer<D> where
    DefaultAllocator: Allocator<Complex, D, D>,
    DefaultAllocator: Allocator<usize, D, D>, 
[src]

impl<D: Debug + DimName> Debug for Outer<D> where
    DefaultAllocator: Allocator<Complex, D, D>, 
[src]

impl<D: DimName> Add<Outer<D>> for Outer<D> where
    DefaultAllocator: Allocator<Complex, D, D>, 
[src]

type Output = Self

The resulting type after applying the + operator.

impl<D: DimName> Mul<Outer<D>> for Bra<D> where
    DefaultAllocator: Allocator<Complex, D, D> + Allocator<Complex, U1, D>, 
[src]

type Output = Self

The resulting type after applying the * operator.

impl<D: DimName> Mul<Ket<D>> for Outer<D> where
    DefaultAllocator: Allocator<Complex, D> + Allocator<Complex, D, D>, 
[src]

type Output = Ket<D>

The resulting type after applying the * operator.

impl<D: DimName> Mul<f64> for Outer<D> where
    DefaultAllocator: Allocator<Complex, D, D>, 
[src]

type Output = Self

The resulting type after applying the * operator.

Auto Trait Implementations

impl<D> !Unpin for Outer<D>

impl<D> !Send for Outer<D>

impl<D> !Sync for Outer<D>

impl<D> !UnwindSafe for Outer<D>

impl<D> !RefUnwindSafe for Outer<D>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>,