pub struct QuantizationMapper {
pub planck_mass: f64,
pub coupling_constant: f64,
}Expand description
Canonical quantization equivalence mapper
Maps canonical quantization results to the mass spectrum of particles. This establishes the equivalence between the quantum field theory formalism and the observed particle masses.
Fields§
§planck_mass: f64§coupling_constant: f64Implementations§
Source§impl QuantizationMapper
impl QuantizationMapper
Sourcepub fn quantum_number_to_mass(&self, quantum_number: u64, frequency: f64) -> f64
pub fn quantum_number_to_mass(&self, quantum_number: u64, frequency: f64) -> f64
Maps a quantum number to a mass value
Uses the canonical quantization relation: m = n * ħω / c² where n is the quantum number and ω is the characteristic frequency
Sourcepub fn mass_to_quantum_number(&self, mass: f64, frequency: f64) -> u64
pub fn mass_to_quantum_number(&self, mass: f64, frequency: f64) -> u64
Maps a mass value to a quantum number
Inverse of quantum_number_to_mass
Sourcepub fn compute_mass_spectrum(
&self,
max_quantum_number: u64,
frequency: f64,
) -> Vec<(u64, f64)>
pub fn compute_mass_spectrum( &self, max_quantum_number: u64, frequency: f64, ) -> Vec<(u64, f64)>
Computes the mass spectrum for a range of quantum numbers
Returns a vector of (quantum_number, mass) pairs
Auto Trait Implementations§
impl Freeze for QuantizationMapper
impl RefUnwindSafe for QuantizationMapper
impl Send for QuantizationMapper
impl Sync for QuantizationMapper
impl Unpin for QuantizationMapper
impl UnsafeUnpin for QuantizationMapper
impl UnwindSafe for QuantizationMapper
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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