pub struct QuantumMemoryHierarchy {
pub hierarchy_id: u64,
pub l1_quantum_cache: L1QuantumCache,
pub l2_quantum_cache: L2QuantumCache,
pub l3_quantum_cache: L3QuantumCache,
pub quantum_main_memory: QuantumMainMemory,
pub quantum_storage: QuantumPersistentStorage,
pub memory_controller: QuantumMemoryController,
pub cache_coherence: QuantumCacheCoherence,
pub prefetcher: QuantumPrefetcher,
pub memory_optimizer: QuantumMemoryOptimizer,
}Expand description
Advanced Quantum Memory Hierarchy System
Fields§
§hierarchy_id: u64§l1_quantum_cache: L1QuantumCache§l2_quantum_cache: L2QuantumCache§l3_quantum_cache: L3QuantumCache§quantum_main_memory: QuantumMainMemory§quantum_storage: QuantumPersistentStorage§memory_controller: QuantumMemoryController§cache_coherence: QuantumCacheCoherence§prefetcher: QuantumPrefetcher§memory_optimizer: QuantumMemoryOptimizerImplementations§
Source§impl QuantumMemoryHierarchy
Implementation of the Quantum Memory Hierarchy
impl QuantumMemoryHierarchy
Implementation of the Quantum Memory Hierarchy
Sourcepub fn execute_quantum_memory_operation(
&mut self,
operation: QuantumMemoryOperation,
) -> Result<QuantumMemoryResult, QuantRS2Error>
pub fn execute_quantum_memory_operation( &mut self, operation: QuantumMemoryOperation, ) -> Result<QuantumMemoryResult, QuantRS2Error>
Execute advanced quantum memory operations
Sourcepub fn demonstrate_memory_hierarchy_advantages(
&mut self,
) -> QuantumMemoryAdvantageReport
pub fn demonstrate_memory_hierarchy_advantages( &mut self, ) -> QuantumMemoryAdvantageReport
Demonstrate quantum memory hierarchy advantages
Sourcepub fn optimize_memory_hierarchy(
&mut self,
workload_characteristics: WorkloadCharacteristics,
) -> Result<OptimizationResult, QuantRS2Error>
pub fn optimize_memory_hierarchy( &mut self, workload_characteristics: WorkloadCharacteristics, ) -> Result<OptimizationResult, QuantRS2Error>
Optimize quantum memory hierarchy configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QuantumMemoryHierarchy
impl RefUnwindSafe for QuantumMemoryHierarchy
impl Send for QuantumMemoryHierarchy
impl Sync for QuantumMemoryHierarchy
impl Unpin for QuantumMemoryHierarchy
impl UnwindSafe for QuantumMemoryHierarchy
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.