Struct qvnt::operator::Op[][src]

pub struct Op(_);

Implementations

impl Op[src]

pub fn len(&self) -> usize[src]

pub fn clear(&mut self)[src]

pub fn id() -> Self[src]

pub fn c(self, c_mask: usize) -> Self[src]

pub fn x(a_mask: usize) -> Self[src]

pub fn rx(phase: f64, a_mask: usize) -> Self[src]

pub fn rxx(phase: f64, ab_mask: usize) -> Self[src]

pub fn y(a_mask: usize) -> Self[src]

pub fn ry(phase: f64, a_mask: usize) -> Self[src]

pub fn ryy(phase: f64, ab_mask: usize) -> Self[src]

pub fn z(a_mask: usize) -> Self[src]

pub fn s(a_mask: usize) -> Self[src]

pub fn t(a_mask: usize) -> Self[src]

pub fn rz(phase: f64, a_mask: usize) -> Self[src]

pub fn rzz(phase: f64, ab_mask: usize) -> Self[src]

pub fn phi(angles_vec: Vec<(f64, usize)>) -> Self[src]

pub fn swap(ab_mask: usize) -> Self[src]

pub fn sqrt_swap(ab_mask: usize) -> Self[src]

pub fn i_swap(ab_mask: usize) -> Self[src]

pub fn sqrt_i_swap(ab_mask: usize) -> Self[src]

pub fn h(a_mask: usize) -> Self[src]

pub fn u3(phi: f64, the: f64, lam: f64, a_mask: usize) -> Self[src]

pub fn uni_1x1(u: [Complex<f64>; 4], a_mask: usize) -> Self[src]

pub fn uni_2x2(u: [Complex<f64>; 16], a_mask: usize, b_mask: usize) -> Self[src]

pub fn if_b_then_u1_else_u0(
    u0: [Complex<f64>; 4],
    u1: [Complex<f64>; 4],
    a_mask: usize,
    b_mask: usize
) -> Self
[src]

pub fn qft(a_mask: usize) -> Self[src]

pub fn qft_no_swap(a_mask: usize) -> Self[src]

pub fn bench_circuit() -> Self[src]

Trait Implementations

impl Debug for Op[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Default for Op[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl Mul<Op> for Op[src]

type Output = Self

The resulting type after applying the * operator.

fn mul(self, rhs: Self) -> Self[src]

Performs the * operation. Read more

impl<'a> Mul<Op> for &'a mut Op[src]

type Output = Self

The resulting type after applying the * operator.

fn mul(self, rhs: Op) -> Self::Output[src]

Performs the * operation. Read more

impl MulAssign<Op> for Op[src]

fn mul_assign(&mut self, rhs: Self)[src]

Performs the *= operation. Read more

impl<'a> MulAssign<Op> for &'a mut Op[src]

fn mul_assign(&mut self, rhs: Op)[src]

Performs the *= operation. Read more

Auto Trait Implementations

impl !RefUnwindSafe for Op

impl Send for Op

impl Sync for Op

impl Unpin for Op

impl !UnwindSafe for Op

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V