[−][src]Struct brakets::Outer
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]
DefaultAllocator: Allocator<Complex, D, D>,
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]
DefaultAllocator: Allocator<Complex, D, D>,
impl<D: PartialEq + DimName> PartialEq<Outer<D>> for Outer<D> where
DefaultAllocator: Allocator<Complex, D, D>,
[src]
DefaultAllocator: Allocator<Complex, D, D>,
impl<D: Clone + DimName> Clone for Outer<D> where
DefaultAllocator: Allocator<Complex, D, D>,
[src]
DefaultAllocator: Allocator<Complex, D, D>,
fn clone(&self) -> Outer<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]
DefaultAllocator: Allocator<Complex, D, D>,
DefaultAllocator: Allocator<usize, D, D>,
impl<D: Debug + DimName> Debug for Outer<D> where
DefaultAllocator: Allocator<Complex, D, D>,
[src]
DefaultAllocator: Allocator<Complex, D, D>,
impl<D: DimName> Add<Outer<D>> for Outer<D> where
DefaultAllocator: Allocator<Complex, D, D>,
[src]
DefaultAllocator: Allocator<Complex, D, D>,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Outer<D>) -> Self::Output
[src]
impl<D: DimName> Mul<Outer<D>> for Bra<D> where
DefaultAllocator: Allocator<Complex, D, D> + Allocator<Complex, U1, D>,
[src]
DefaultAllocator: Allocator<Complex, D, D> + Allocator<Complex, U1, D>,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Outer<D>) -> Self::Output
[src]
impl<D: DimName> Mul<Ket<D>> for Outer<D> where
DefaultAllocator: Allocator<Complex, D> + Allocator<Complex, D, D>,
[src]
DefaultAllocator: Allocator<Complex, D> + Allocator<Complex, D, D>,
type Output = Ket<D>
The resulting type after applying the *
operator.
fn mul(self, other: Ket<D>) -> Self::Output
[src]
impl<D: DimName> Mul<f64> for Outer<D> where
DefaultAllocator: Allocator<Complex, D, D>,
[src]
DefaultAllocator: Allocator<Complex, D, D>,
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]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,