pub struct OrderFindingResult {
pub order: u64,
pub phase: f64,
pub measured: usize,
pub counting_qubits: usize,
}Expand description
Outcome of order_finding.
Fields§
§order: u64The recovered period r such that a^r ≡ 1 (mod N) (or 0 if not found).
phase: f64The raw phase φ ≈ k/r ∈ [0, 1) read from the counting register.
measured: usizeThe integer measured in the counting register (argmax readout).
counting_qubits: usizeThe number of counting qubits used.
Trait Implementations§
Source§impl Clone for OrderFindingResult
impl Clone for OrderFindingResult
Source§fn clone(&self) -> OrderFindingResult
fn clone(&self) -> OrderFindingResult
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 OrderFindingResult
impl RefUnwindSafe for OrderFindingResult
impl Send for OrderFindingResult
impl Sync for OrderFindingResult
impl Unpin for OrderFindingResult
impl UnsafeUnpin for OrderFindingResult
impl UnwindSafe for OrderFindingResult
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