pub struct QuantumCapacities {
pub channel_name: String,
pub classical_capacity: f64,
pub quantum_capacity: f64,
pub entanglement_assisted_capacity: f64,
pub private_capacity: f64,
}Expand description
Quantum Shannon theory capacities.
Fields§
§channel_name: String§classical_capacity: f64§quantum_capacity: f64§entanglement_assisted_capacity: f64§private_capacity: f64Implementations§
Source§impl QuantumCapacities
impl QuantumCapacities
pub fn for_qubit_channel(name: &str, cc: f64, qc: f64, ea: f64, pc: f64) -> Self
pub fn quantum_is_at_most_private(&self) -> bool
pub fn superdense_coding_factor(&self) -> f64
Trait Implementations§
Source§impl Clone for QuantumCapacities
impl Clone for QuantumCapacities
Source§fn clone(&self) -> QuantumCapacities
fn clone(&self) -> QuantumCapacities
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 moreAuto Trait Implementations§
impl Freeze for QuantumCapacities
impl RefUnwindSafe for QuantumCapacities
impl Send for QuantumCapacities
impl Sync for QuantumCapacities
impl Unpin for QuantumCapacities
impl UnsafeUnpin for QuantumCapacities
impl UnwindSafe for QuantumCapacities
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