pub struct QuantumSparseProcessor { /* private fields */ }
Expand description
Quantum-inspired sparse matrix processor
Implementations§
Source§impl QuantumSparseProcessor
impl QuantumSparseProcessor
Sourcepub fn new(config: QuantumSparseConfig) -> Self
pub fn new(config: QuantumSparseConfig) -> Self
Create a new quantum-inspired sparse matrix processor
Sourcepub fn quantum_spmv<T>(
&mut self,
rows: usize,
indptr: &[usize],
indices: &[usize],
data: &[T],
x: &[T],
y: &mut [T],
) -> SparseResult<()>
pub fn quantum_spmv<T>( &mut self, rows: usize, indptr: &[usize], indices: &[usize], data: &[T], x: &[T], y: &mut [T], ) -> SparseResult<()>
Quantum-inspired sparse matrix-vector multiplication
Sourcepub fn get_stats(&self) -> QuantumProcessorStats
pub fn get_stats(&self) -> QuantumProcessorStats
Get quantum processor statistics
Auto Trait Implementations§
impl !Freeze for QuantumSparseProcessor
impl RefUnwindSafe for QuantumSparseProcessor
impl Send for QuantumSparseProcessor
impl Sync for QuantumSparseProcessor
impl Unpin for QuantumSparseProcessor
impl UnwindSafe for QuantumSparseProcessor
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> 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