pub struct QuantumProfiler<const N: usize> { /* private fields */ }Expand description
Comprehensive quantum circuit profiler with SciRS2 integration
Implementations§
Source§impl<const N: usize> QuantumProfiler<N>
impl<const N: usize> QuantumProfiler<N>
Sourcepub fn with_config(circuit: Circuit<N>, config: ProfilerConfig) -> Self
pub fn with_config(circuit: Circuit<N>, config: ProfilerConfig) -> Self
Create profiler with custom configuration
Sourcepub fn start_profiling(&mut self) -> QuantRS2Result<String>
pub fn start_profiling(&mut self) -> QuantRS2Result<String>
Start profiling session
Sourcepub fn stop_profiling(
&mut self,
session_id: &str,
) -> QuantRS2Result<ProfilingReport>
pub fn stop_profiling( &mut self, session_id: &str, ) -> QuantRS2Result<ProfilingReport>
Stop profiling session
Sourcepub fn get_realtime_metrics(&self) -> QuantRS2Result<RealtimeMetrics>
pub fn get_realtime_metrics(&self) -> QuantRS2Result<RealtimeMetrics>
Get real-time profiling metrics
Sourcepub fn analyze_performance(
&mut self,
) -> QuantRS2Result<PerformanceAnalysisReport>
pub fn analyze_performance( &mut self, ) -> QuantRS2Result<PerformanceAnalysisReport>
Analyze circuit performance
Sourcepub fn run_benchmarks(
&mut self,
suite_name: &str,
) -> QuantRS2Result<BenchmarkResult>
pub fn run_benchmarks( &mut self, suite_name: &str, ) -> QuantRS2Result<BenchmarkResult>
Run benchmarks
Sourcepub fn detect_regressions(
&mut self,
) -> QuantRS2Result<Vec<PerformanceRegression>>
pub fn detect_regressions( &mut self, ) -> QuantRS2Result<Vec<PerformanceRegression>>
Detect performance regressions
Sourcepub fn export_data(
&self,
session_id: &str,
format: ExportFormat,
) -> QuantRS2Result<String>
pub fn export_data( &self, session_id: &str, format: ExportFormat, ) -> QuantRS2Result<String>
Export profiling data
Auto Trait Implementations§
impl<const N: usize> Freeze for QuantumProfiler<N>
impl<const N: usize> !RefUnwindSafe for QuantumProfiler<N>
impl<const N: usize> Send for QuantumProfiler<N>
impl<const N: usize> Sync for QuantumProfiler<N>
impl<const N: usize> Unpin for QuantumProfiler<N>
impl<const N: usize> !UnwindSafe for QuantumProfiler<N>
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.