pub struct QuantumGpuQuantizer { /* private fields */ }Expand description
GPU-accelerated quantum quantizer with optimized kernels
Implementations§
Source§impl QuantumGpuQuantizer
impl QuantumGpuQuantizer
Sourcepub fn new(config: QuantumConfig, gpu_config: QuantumGpuConfig) -> Self
pub fn new(config: QuantumConfig, gpu_config: QuantumGpuConfig) -> Self
Create a new GPU-accelerated quantum quantizer
Sourcepub fn gpu_prepare_quantum_states(
&mut self,
data: &[f32],
) -> TorshResult<Vec<QuantumBasisState>>
pub fn gpu_prepare_quantum_states( &mut self, data: &[f32], ) -> TorshResult<Vec<QuantumBasisState>>
GPU-optimized quantum state preparation using parallel kernels
Sourcepub fn gpu_compute_entanglement(
&mut self,
states: &[QuantumBasisState],
) -> TorshResult<Vec<f32>>
pub fn gpu_compute_entanglement( &mut self, states: &[QuantumBasisState], ) -> TorshResult<Vec<f32>>
GPU-optimized quantum entanglement computation
Sourcepub fn gpu_quantum_annealing(
&mut self,
initial_params: &[f32],
target_error: f32,
) -> TorshResult<Vec<f32>>
pub fn gpu_quantum_annealing( &mut self, initial_params: &[f32], target_error: f32, ) -> TorshResult<Vec<f32>>
GPU-optimized quantum annealing for parameter optimization
Sourcepub fn get_gpu_metrics(&self) -> &QuantumGpuMetrics
pub fn get_gpu_metrics(&self) -> &QuantumGpuMetrics
Get GPU performance metrics
Sourcepub fn get_gpu_optimization_recommendations(&self) -> Vec<String>
pub fn get_gpu_optimization_recommendations(&self) -> Vec<String>
Get GPU utilization recommendations
Sourcepub fn benchmark_gpu_vs_cpu(
&mut self,
test_data: &[f32],
) -> TorshResult<GpuBenchmarkResult>
pub fn benchmark_gpu_vs_cpu( &mut self, test_data: &[f32], ) -> TorshResult<GpuBenchmarkResult>
Benchmark GPU vs CPU performance for quantum operations
Trait Implementations§
Source§impl Clone for QuantumGpuQuantizer
impl Clone for QuantumGpuQuantizer
Source§fn clone(&self) -> QuantumGpuQuantizer
fn clone(&self) -> QuantumGpuQuantizer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QuantumGpuQuantizer
impl RefUnwindSafe for QuantumGpuQuantizer
impl Send for QuantumGpuQuantizer
impl Sync for QuantumGpuQuantizer
impl Unpin for QuantumGpuQuantizer
impl UnsafeUnpin for QuantumGpuQuantizer
impl UnwindSafe for QuantumGpuQuantizer
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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