pub struct OptimizationStatistics {
pub original_gate_count: usize,
pub optimized_gate_count: usize,
pub original_depth: usize,
pub optimized_depth: usize,
pub redundant_gates_eliminated: usize,
pub gates_fused: usize,
pub gates_reordered: usize,
pub passes_performed: usize,
pub optimization_time_ns: u128,
}Expand description
Optimization statistics and metrics
Fields§
§original_gate_count: usizeOriginal gate count
optimized_gate_count: usizeOptimized gate count
original_depth: usizeOriginal circuit depth
optimized_depth: usizeOptimized circuit depth
redundant_gates_eliminated: usizeGates eliminated by redundancy removal
gates_fused: usizeGates fused together
gates_reordered: usizeGates reordered for parallelization
passes_performed: usizeOptimization passes performed
optimization_time_ns: u128Time spent in optimization (in nanoseconds)
Implementations§
Source§impl OptimizationStatistics
impl OptimizationStatistics
Sourcepub fn gate_count_reduction(&self) -> f64
pub fn gate_count_reduction(&self) -> f64
Calculate the gate count reduction percentage
Sourcepub fn depth_reduction(&self) -> f64
pub fn depth_reduction(&self) -> f64
Calculate the depth reduction percentage
Sourcepub fn generate_report(&self) -> String
pub fn generate_report(&self) -> String
Generate optimization summary report
Trait Implementations§
Source§impl Clone for OptimizationStatistics
impl Clone for OptimizationStatistics
Source§fn clone(&self) -> OptimizationStatistics
fn clone(&self) -> OptimizationStatistics
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 moreSource§impl Debug for OptimizationStatistics
impl Debug for OptimizationStatistics
Source§impl Default for OptimizationStatistics
impl Default for OptimizationStatistics
Source§fn default() -> OptimizationStatistics
fn default() -> OptimizationStatistics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OptimizationStatistics
impl RefUnwindSafe for OptimizationStatistics
impl Send for OptimizationStatistics
impl Sync for OptimizationStatistics
impl Unpin for OptimizationStatistics
impl UnwindSafe for OptimizationStatistics
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 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.