pub enum QuantumStrategy {
Classical(f64),
Superposition {
theta: f64,
phi: f64,
},
Entangled,
Mixed(Vec<(f64, QuantumStrategy)>),
}Expand description
Player strategies in quantum games
Variants§
Classical(f64)
Classical deterministic strategy (pure classical)
Superposition
Quantum superposition strategy
Entangled
Entangled strategy (requires coordination with other player)
Mixed(Vec<(f64, QuantumStrategy)>)
Mixed quantum strategy
Trait Implementations§
Source§impl Clone for QuantumStrategy
impl Clone for QuantumStrategy
Source§fn clone(&self) -> QuantumStrategy
fn clone(&self) -> QuantumStrategy
Returns a duplicate of the value. Read more
1.0.0 · 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 QuantumStrategy
impl Debug for QuantumStrategy
Source§impl PartialEq for QuantumStrategy
impl PartialEq for QuantumStrategy
impl StructuralPartialEq for QuantumStrategy
Auto Trait Implementations§
impl Freeze for QuantumStrategy
impl RefUnwindSafe for QuantumStrategy
impl Send for QuantumStrategy
impl Sync for QuantumStrategy
impl Unpin for QuantumStrategy
impl UnwindSafe for QuantumStrategy
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