pub enum BackendKind {
}Expand description
Automatically select the optimal backend based on circuit analysis.
Decision tree:
- No entangling gates → ProductState (O(n))
- All Clifford gates → Stabilizer (O(n²))
- Clifford+T, t ≤ 12 → StabilizerRank (O(2^t · n²))
- Above memory limit: a. Sparse-friendly → Sparse (O(k) where k = non-zero amplitudes) b. Otherwise → MPS (bounded bond dimension)
- Otherwise → Statevector (exact, general-purpose)
Variants§
Auto
Statevector
Stabilizer
Sparse
Mps
ProductState
TensorNetwork
Factored
StabilizerRank
FilteredStabilizer
FactoredStabilizer
StochasticPauli
DeterministicPauli
Implementations§
Source§impl BackendKind
impl BackendKind
pub fn supports_noisy_per_shot(&self) -> bool
pub fn supports_general_noise(&self) -> bool
Trait Implementations§
Source§impl Clone for BackendKind
impl Clone for BackendKind
Source§fn clone(&self) -> BackendKind
fn clone(&self) -> BackendKind
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 moreAuto Trait Implementations§
impl Freeze for BackendKind
impl RefUnwindSafe for BackendKind
impl Send for BackendKind
impl Sync for BackendKind
impl Unpin for BackendKind
impl UnsafeUnpin for BackendKind
impl UnwindSafe for BackendKind
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