pub struct SimonResult {
pub period: usize,
pub constraints: Vec<usize>,
pub shots_used: usize,
}Expand description
Outcome of simon.
Fields§
§period: usizeThe recovered hidden period s (little-endian: bit i ↦ query qubit i).
Equals 0 when the oracle is one-to-one (the trivial period).
constraints: Vec<usize>The linearly independent constraint vectors y sampled from the circuit
(each satisfies y · s = 0 (mod 2)).
shots_used: usizeNumber of circuit executions (shots) consumed to gather the constraints.
Trait Implementations§
Source§impl Clone for SimonResult
impl Clone for SimonResult
Source§fn clone(&self) -> SimonResult
fn clone(&self) -> SimonResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SimonResult
impl RefUnwindSafe for SimonResult
impl Send for SimonResult
impl Sync for SimonResult
impl Unpin for SimonResult
impl UnsafeUnpin for SimonResult
impl UnwindSafe for SimonResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more