Struct qvnt::register::QReg [−][src]
pub struct QReg { /* fields omitted */ }
Implementations
impl QReg
[src]
impl QReg
[src]pub fn new(q_num: usize) -> Self
[src]
pub fn init_state(self, i_state: usize) -> Self
[src]
pub fn set_alias_str(self, alias: String) -> Self
[src]
pub fn set_alias_char(self, alias: char) -> Self
[src]
pub fn get_vreg(&self) -> VReg
[src]
pub fn get_vreg_by_mask(&self, mask: usize) -> Option<VReg>
[src]
pub fn get_vreg_by_char(&self, c: char) -> Option<VReg>
[src]
pub fn apply(&mut self, ops: &Op)
[src]
pub fn get_polar(&mut self) -> Vec<(f64, f64)>
[src]
pub fn get_probabilities(&self) -> Vec<f64>
[src]
pub fn measure_mask(&mut self, mask: usize) -> usize
[src]
pub fn measure(&mut self) -> usize
[src]
pub fn sample_all(&self, count: usize) -> Vec<usize>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for QReg
impl Send for QReg
impl Sync for QReg
impl Unpin for QReg
impl UnwindSafe for QReg
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,