pub struct QuantumAwareInterpreter {
pub interpreter_id: Uuid,
pub quantum_state_tracker: QuantumStateTracker,
pub jit_compiler: QuantumJITCompiler,
pub optimization_engine: RuntimeOptimizationEngine,
pub execution_context: InterpreterExecutionContext,
pub memory_manager: QuantumMemoryManager,
pub profiler: QuantumProfiler,
}Expand description
Quantum-aware interpreter with advanced optimization capabilities
Fields§
§interpreter_id: Uuid§quantum_state_tracker: QuantumStateTracker§jit_compiler: QuantumJITCompiler§optimization_engine: RuntimeOptimizationEngine§execution_context: InterpreterExecutionContext§memory_manager: QuantumMemoryManager§profiler: QuantumProfilerImplementations§
Source§impl QuantumAwareInterpreter
impl QuantumAwareInterpreter
Sourcepub async fn execute_operation(
&mut self,
operation: &dyn GateOp,
target_state_id: Uuid,
) -> Result<OperationResult, QuantRS2Error>
pub async fn execute_operation( &mut self, operation: &dyn GateOp, target_state_id: Uuid, ) -> Result<OperationResult, QuantRS2Error>
Execute quantum operation with intelligent optimization
Sourcepub async fn execute_circuit(
&mut self,
circuit: &[Box<dyn GateOp>],
initial_state_id: Uuid,
) -> Result<CircuitExecutionResult, QuantRS2Error>
pub async fn execute_circuit( &mut self, circuit: &[Box<dyn GateOp>], initial_state_id: Uuid, ) -> Result<CircuitExecutionResult, QuantRS2Error>
Execute quantum circuit with adaptive optimization
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QuantumAwareInterpreter
impl !RefUnwindSafe for QuantumAwareInterpreter
impl Send for QuantumAwareInterpreter
impl Sync for QuantumAwareInterpreter
impl Unpin for QuantumAwareInterpreter
impl !UnwindSafe for QuantumAwareInterpreter
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