pub struct NumericCaps {
pub max_entries: u64,
pub max_operators: u64,
}Expand description
The two caps of the numeric semantics, both counted and refused before allocating.
max_entries bounds the composite Choi operator, 2^(2n + 2k) entries for a channel from n
to k qubits, and also the working storage of a program evaluation. max_operators bounds the
Kraus family a program carries, the product of the operator counts of its noise boxes and the
outcome counts of its measurements. A fault-set query inserts one error channel of at most four
operators, so the fault path stays far below the second cap.
Fields§
§max_entries: u64Default 2^24, so n + k ≤ 12.
max_operators: u64Default 2^12.
Trait Implementations§
Source§impl Clone for NumericCaps
impl Clone for NumericCaps
Source§fn clone(&self) -> NumericCaps
fn clone(&self) -> NumericCaps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NumericCaps
Source§impl Debug for NumericCaps
impl Debug for NumericCaps
Source§impl Default for NumericCaps
impl Default for NumericCaps
impl Eq for NumericCaps
Source§impl PartialEq for NumericCaps
impl PartialEq for NumericCaps
impl StructuralPartialEq for NumericCaps
Auto Trait Implementations§
impl Freeze for NumericCaps
impl RefUnwindSafe for NumericCaps
impl Send for NumericCaps
impl Sync for NumericCaps
impl Unpin for NumericCaps
impl UnsafeUnpin for NumericCaps
impl UnwindSafe for NumericCaps
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