pub struct NeuralDecoder { /* private fields */ }Expand description
Neural Quantum Error Decoder
Combines GNN-based syndrome encoding with Mamba state-space decoding.
Implementations§
Source§impl NeuralDecoder
impl NeuralDecoder
Sourcepub fn new(config: DecoderConfig) -> Result<Self>
pub fn new(config: DecoderConfig) -> Result<Self>
Create a new neural decoder with the given configuration
§Errors
Returns an error if embed_dim is not divisible by num_heads.
Sourcepub fn decode(&mut self, syndrome: &[bool]) -> Result<Correction>
pub fn decode(&mut self, syndrome: &[bool]) -> Result<Correction>
Decode a syndrome bitmap and produce corrections
Sourcepub fn config(&self) -> &DecoderConfig
pub fn config(&self) -> &DecoderConfig
Get the decoder configuration
Auto Trait Implementations§
impl Freeze for NeuralDecoder
impl RefUnwindSafe for NeuralDecoder
impl Send for NeuralDecoder
impl Sync for NeuralDecoder
impl Unpin for NeuralDecoder
impl UnwindSafe for NeuralDecoder
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