pub struct QuantumScheduler { /* private fields */ }Expand description
Quantum-inspired task scheduler using superposition and entanglement concepts
Implementations§
Source§impl QuantumScheduler
impl QuantumScheduler
pub fn new(num_tasks: usize) -> Self
Sourcepub fn rotate(&self, task_id: usize, theta: f64)
pub fn rotate(&self, task_id: usize, theta: f64)
Apply quantum rotation gate to adjust task priority
Sourcepub fn entangle(&self, task_a: usize, task_b: usize, strength: f64)
pub fn entangle(&self, task_a: usize, task_b: usize, strength: f64)
Create entanglement between two tasks
Sourcepub fn measure(
&self,
task_id: usize,
num_threads: usize,
) -> Option<SchedulingDecision>
pub fn measure( &self, task_id: usize, num_threads: usize, ) -> Option<SchedulingDecision>
Measure qubit state and make scheduling decision
Sourcepub fn interference(&self, task_a: usize, task_b: usize) -> f64
pub fn interference(&self, task_a: usize, task_b: usize) -> f64
Apply quantum interference to optimize scheduling
Sourcepub fn anneal(&self, temperature: f64) -> Vec<usize>
pub fn anneal(&self, temperature: f64) -> Vec<usize>
Get optimal task ordering using quantum annealing simulation
Sourcepub fn stats(&self) -> QuantumStats
pub fn stats(&self) -> QuantumStats
Get scheduling statistics
Trait Implementations§
Source§impl Clone for QuantumScheduler
impl Clone for QuantumScheduler
Source§fn clone(&self) -> QuantumScheduler
fn clone(&self) -> QuantumScheduler
Returns a duplicate of the value. Read more
1.0.0§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 QuantumScheduler
impl RefUnwindSafe for QuantumScheduler
impl Send for QuantumScheduler
impl Sync for QuantumScheduler
impl Unpin for QuantumScheduler
impl UnwindSafe for QuantumScheduler
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)