pub struct DecodeConfig {
pub p_fx: i64,
pub max_iter: u32,
pub max_legs: u32,
}Expand description
Deterministic decoder configuration.
Fields§
§p_fx: i64Physical error rate per qubit (fixed-point, scale 2^12).
max_iter: u32Max BP iterations per leg.
max_legs: u32Max relay legs (1 = plain BP).
Implementations§
Source§impl DecodeConfig
impl DecodeConfig
pub fn from_p(p: f64) -> DecodeConfig
Trait Implementations§
Source§impl Clone for DecodeConfig
impl Clone for DecodeConfig
Source§fn clone(&self) -> DecodeConfig
fn clone(&self) -> DecodeConfig
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 DecodeConfig
Auto Trait Implementations§
impl Freeze for DecodeConfig
impl RefUnwindSafe for DecodeConfig
impl Send for DecodeConfig
impl Sync for DecodeConfig
impl Unpin for DecodeConfig
impl UnsafeUnpin for DecodeConfig
impl UnwindSafe for DecodeConfig
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