pub struct QuantumGraphProcessor { /* private fields */ }Expand description
Quantum graph processor for advanced RDF operations
Implementations§
Source§impl QuantumGraphProcessor
impl QuantumGraphProcessor
Sourcepub fn create_superposition(
&mut self,
triples: Vec<Triple>,
) -> OxirsResult<QuantumState>
pub fn create_superposition( &mut self, triples: Vec<Triple>, ) -> OxirsResult<QuantumState>
Create quantum superposition of RDF triples
Sourcepub fn apply_gate(
&self,
state: &QuantumState,
gate: &Array2<f64>,
) -> OxirsResult<QuantumState>
pub fn apply_gate( &self, state: &QuantumState, gate: &Array2<f64>, ) -> OxirsResult<QuantumState>
Apply quantum gate to state
Sourcepub fn measure(&self, state: &QuantumState) -> OxirsResult<usize>
pub fn measure(&self, state: &QuantumState) -> OxirsResult<usize>
Measure quantum state
Sourcepub fn entangle(&mut self, state1_id: &str, state2_id: &str) -> OxirsResult<()>
pub fn entangle(&mut self, state1_id: &str, state2_id: &str) -> OxirsResult<()>
Create entanglement between quantum states
Sourcepub fn quantum_interference(
&self,
states: Vec<&QuantumState>,
) -> OxirsResult<QuantumState>
pub fn quantum_interference( &self, states: Vec<&QuantumState>, ) -> OxirsResult<QuantumState>
Quantum interference for query optimization
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QuantumGraphProcessor
impl RefUnwindSafe for QuantumGraphProcessor
impl Send for QuantumGraphProcessor
impl Sync for QuantumGraphProcessor
impl Unpin for QuantumGraphProcessor
impl UnsafeUnpin for QuantumGraphProcessor
impl UnwindSafe for QuantumGraphProcessor
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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