pub struct SciRS2GpuFactory;
Expand description
Create a SciRS2 GPU backend factory
Implementations§
Source§impl SciRS2GpuFactory
impl SciRS2GpuFactory
Sourcepub fn create_best() -> QuantRS2Result<SciRS2GpuBackend>
pub fn create_best() -> QuantRS2Result<SciRS2GpuBackend>
Create the best available SciRS2 GPU backend
Sourcepub fn create_with_config(
config: SciRS2GpuConfig,
) -> QuantRS2Result<SciRS2GpuBackend>
pub fn create_with_config( config: SciRS2GpuConfig, ) -> QuantRS2Result<SciRS2GpuBackend>
Create with specific configuration
Sourcepub fn create_qml_optimized() -> QuantRS2Result<SciRS2GpuBackend>
pub fn create_qml_optimized() -> QuantRS2Result<SciRS2GpuBackend>
Create optimized for quantum machine learning
Sourcepub fn create_algorithm_optimized() -> QuantRS2Result<SciRS2GpuBackend>
pub fn create_algorithm_optimized() -> QuantRS2Result<SciRS2GpuBackend>
Create optimized for quantum algorithms
Sourcepub fn available_backends() -> Vec<String>
pub fn available_backends() -> Vec<String>
List available GPU backends
Auto Trait Implementations§
impl Freeze for SciRS2GpuFactory
impl RefUnwindSafe for SciRS2GpuFactory
impl Send for SciRS2GpuFactory
impl Sync for SciRS2GpuFactory
impl Unpin for SciRS2GpuFactory
impl UnwindSafe for SciRS2GpuFactory
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