pub struct QuantumTransformer {
pub n_qubits: usize,
pub gate_sequence: Vec<QuantumGate>,
pub backend: QuantumBackend,
}Expand description
Quantum-inspired machine learning transformer
This transformer uses quantum computing concepts for data transformation Currently provides a classical simulation of quantum algorithms
Fields§
§n_qubits: usizeNumber of qubits to simulate
gate_sequence: Vec<QuantumGate>Quantum gate configuration
backend: QuantumBackendClassical simulation backend
Implementations§
Source§impl QuantumTransformer
impl QuantumTransformer
Sourcepub fn add_gate(&mut self, gate: QuantumGate) -> &mut Self
pub fn add_gate(&mut self, gate: QuantumGate) -> &mut Self
Add a quantum gate to the sequence
Sourcepub fn with_backend(self, backend: QuantumBackend) -> Self
pub fn with_backend(self, backend: QuantumBackend) -> Self
Set the quantum backend
Trait Implementations§
Source§impl Clone for QuantumTransformer
impl Clone for QuantumTransformer
Source§fn clone(&self) -> QuantumTransformer
fn clone(&self) -> QuantumTransformer
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 QuantumTransformer
impl Debug for QuantumTransformer
Source§impl Default for QuantumTransformer
impl Default for QuantumTransformer
Auto Trait Implementations§
impl Freeze for QuantumTransformer
impl RefUnwindSafe for QuantumTransformer
impl Send for QuantumTransformer
impl Sync for QuantumTransformer
impl Unpin for QuantumTransformer
impl UnwindSafe for QuantumTransformer
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 more