pub struct DataEncoder { /* private fields */ }
Expand description
Data encoder for quantum circuits
Implementations§
Source§impl DataEncoder
impl DataEncoder
Sourcepub fn new(strategy: EncodingStrategy, num_qubits: usize) -> Self
pub fn new(strategy: EncodingStrategy, num_qubits: usize) -> Self
Create a new data encoder
Sourcepub fn num_features(&self) -> usize
pub fn num_features(&self) -> usize
Get the number of features this encoder can handle
Auto Trait Implementations§
impl Freeze for DataEncoder
impl RefUnwindSafe for DataEncoder
impl Send for DataEncoder
impl Sync for DataEncoder
impl Unpin for DataEncoder
impl UnwindSafe for DataEncoder
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