pub struct SciRS2BufferAdapter { /* private fields */ }
Expand description
Enhanced SciRS2 GPU Buffer with quantum-specific optimizations
Implementations§
Source§impl SciRS2BufferAdapter
impl SciRS2BufferAdapter
Sourcepub fn with_config(size: usize, config: SciRS2GpuConfig) -> Self
pub fn with_config(size: usize, config: SciRS2GpuConfig) -> Self
Create buffer with custom configuration
Sourcepub fn get_metrics(&self) -> SciRS2GpuMetrics
pub fn get_metrics(&self) -> SciRS2GpuMetrics
Get performance metrics
pub fn is_gpu_active(&self) -> bool
Trait Implementations§
Source§impl GpuBuffer for SciRS2BufferAdapter
impl GpuBuffer for SciRS2BufferAdapter
Source§fn download(&self, data: &mut [Complex64]) -> QuantRS2Result<()>
fn download(&self, data: &mut [Complex64]) -> QuantRS2Result<()>
Copy data from device to host
Source§fn sync(&self) -> QuantRS2Result<()>
fn sync(&self) -> QuantRS2Result<()>
Synchronize GPU operations
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Enable mutable downcasting to concrete types
Auto Trait Implementations§
impl Freeze for SciRS2BufferAdapter
impl RefUnwindSafe for SciRS2BufferAdapter
impl Send for SciRS2BufferAdapter
impl Sync for SciRS2BufferAdapter
impl Unpin for SciRS2BufferAdapter
impl UnwindSafe for SciRS2BufferAdapter
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