pub struct PhaseEstimationConfig {
pub n_ancilla: usize,
pub n_trials: usize,
}Expand description
Configuration for Quantum Phase Estimation.
Fields§
§n_ancilla: usizeNumber of ancilla (readout) qubits. Precision ≈ 1 / 2^n_ancilla. Default: 8 (i.e. ≈ 1/256 precision).
n_trials: usizeNumber of independent trials used for iterative QPE (currently unused; included for API forward compatibility). Default: 1.
Trait Implementations§
Source§impl Clone for PhaseEstimationConfig
impl Clone for PhaseEstimationConfig
Source§fn clone(&self) -> PhaseEstimationConfig
fn clone(&self) -> PhaseEstimationConfig
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 moreSource§impl Debug for PhaseEstimationConfig
impl Debug for PhaseEstimationConfig
Auto Trait Implementations§
impl Freeze for PhaseEstimationConfig
impl RefUnwindSafe for PhaseEstimationConfig
impl Send for PhaseEstimationConfig
impl Sync for PhaseEstimationConfig
impl Unpin for PhaseEstimationConfig
impl UnsafeUnpin for PhaseEstimationConfig
impl UnwindSafe for PhaseEstimationConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more