pub struct CoherenceManager { /* private fields */ }
Expand description
Coherence management for quantum states
Implementations§
Source§impl CoherenceManager
impl CoherenceManager
pub fn new() -> Self
Sourcepub async fn start_tracking(&self, state_id: Uuid, coherence_time: Duration)
pub async fn start_tracking(&self, state_id: Uuid, coherence_time: Duration)
Start tracking coherence for a quantum state
Sourcepub async fn stop_tracking(&self, state_id: Uuid)
pub async fn stop_tracking(&self, state_id: Uuid)
Stop tracking coherence for a quantum state
Sourcepub async fn is_coherent(&self, state_id: Uuid) -> bool
pub async fn is_coherent(&self, state_id: Uuid) -> bool
Check if a quantum state is still coherent
Sourcepub async fn get_predicted_fidelity(&self, state_id: Uuid) -> f64
pub async fn get_predicted_fidelity(&self, state_id: Uuid) -> f64
Get predicted fidelity for a quantum state
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoherenceManager
impl RefUnwindSafe for CoherenceManager
impl Send for CoherenceManager
impl Sync for CoherenceManager
impl Unpin for CoherenceManager
impl UnwindSafe for CoherenceManager
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> 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