pub struct QFT { /* private fields */ }Expand description
Quantum Fourier Transform implementation.
Uses FFT-inspired optimizations for 2x speedup over naive implementation.
Implementations§
Trait Implementations§
Source§impl QuantumAlgorithm for QFT
impl QuantumAlgorithm for QFT
Source§fn build_circuit(&self) -> Result<Circuit, AlgorithmError>
fn build_circuit(&self) -> Result<Circuit, AlgorithmError>
Build the quantum circuit for this algorithm.
Source§fn run(&self, _shots: u32) -> Result<AlgorithmResult, AlgorithmError>
fn run(&self, _shots: u32) -> Result<AlgorithmResult, AlgorithmError>
Execute the algorithm with the specified number of shots.
Source§fn num_qubits(&self) -> usize
fn num_qubits(&self) -> usize
Get the number of qubits required.
Auto Trait Implementations§
impl Freeze for QFT
impl RefUnwindSafe for QFT
impl Send for QFT
impl Sync for QFT
impl Unpin for QFT
impl UnwindSafe for QFT
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