Skip to main content

InterferenceKernels

Struct InterferenceKernels 

Source
pub struct InterferenceKernels {
    pub kernels: Vec<[[Complex; 3]; 10]>,
}
Expand description

Interference kernel kappa_{n,ij} in C^3 for particle n between modes i and j. Controls how off-diagonal coherence rho_{ij} affects particle geometry.

The particle position with interference is: x_n = root + sum_k rho_kk * g_{n,k} + 2*sum_{i<j} Re[kappa_{n,ij} * rho_{ij}]

This is the decisive test from QUANTUM.md S7: If exists n: x_n(rho) != x_n(Delta(rho)), then coherence is not metaphor — it’s simulation.

Fields§

§kernels: Vec<[[Complex; 3]; 10]>

For each mode pair (i,j) with i<j, a 3D complex displacement. 10 pairs x 3 axes x 2 (re,im) = 60 f32 values per particle. We store kernels for a representative subset of particles. Pair order: (0,1),(0,2),(0,3),(0,4),(1,2),(1,3),(1,4),(2,3),(2,4),(3,4)

Implementations§

Source§

impl InterferenceKernels

Source

pub fn generate(particle_count: u32) -> Self

Generate interference kernels for N particles. Each kernel is designed to create visible wave-like distortion when the corresponding mode coherence is nonzero.

Source

pub fn interference_displacement( &self, n: usize, rho: &DensityMatrix5, ) -> [f32; 3]

Compute interference displacement for particle n from density matrix. Returns the 3D displacement caused by off-diagonal coherence. This is: 2*sum_{i<j} Re[kappa_{n,ij} * rho_{ij}]

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.