pub trait QuantumOps {
// Required methods
fn dag(&self) -> Self;
fn bracket(&self, other: &Self) -> Complex<f64>;
fn expectation_value(&self, operator: &Self) -> Complex<f64>;
fn normalize(&self) -> Self;
}Expand description
Core Quantum State Operations (Dirac Notation).
Required Methods§
Sourcefn bracket(&self, other: &Self) -> Complex<f64>
fn bracket(&self, other: &Self) -> Complex<f64>
Inner Product (Dirac Bracket): $\langle \phi | \psi \rangle$.
Sourcefn expectation_value(&self, operator: &Self) -> Complex<f64>
fn expectation_value(&self, operator: &Self) -> Complex<f64>
Expectation Value: $\langle \psi | A | \psi \rangle$.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.