generalized_master_equation_kernel

Function generalized_master_equation_kernel 

Source
pub fn generalized_master_equation_kernel(
    state: &[Probability],
    history: &[Vec<Probability>],
    markov_operator: Option<&CausalTensor<f64>>,
    memory_kernel: &[CausalTensor<f64>],
) -> Result<Vec<Probability>, PhysicsError>
Expand description

Generalized Master Equation Kernel.

Implements the GME for systems with memory effects (non-Markovianity). $P_{n+1} = T \cdot P_n + \sum_{k=0}^{m} \mathcal{K}k \cdot P{n-k} \cdot \Delta t$

§Arguments

  • state - Current state vector ($P_n$).
  • history - History of state vectors ($P_{n-k}$).
  • markov_operator - Optional Markov transition matrix ($T$).
  • memory_kernel - List of memory kernel tensors ($\mathcal{K}_k$).

§Returns

  • Result<Vec<Probability>, PhysicsError> - The updated state vector.