Skip to main content

QuantumBackend

Trait QuantumBackend 

Source
pub trait QuantumBackend: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn max_qubits(&self) -> usize;
    fn health_check<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<BackendStatus, QuantumError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn submit_evolution<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        register: &'life1 [(String, [f64; 2])],
        state: &'life2 QuantumCognitiveState,
        params: EvolutionParams,
    ) -> Pin<Box<dyn Future<Output = Result<JobHandle, QuantumError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn poll<'life0, 'life1, 'async_trait>(
        &'life0 self,
        handle: &'life1 JobHandle,
    ) -> Pin<Box<dyn Future<Output = Result<JobStatus, QuantumError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_results<'life0, 'life1, 'async_trait>(
        &'life0 self,
        handle: &'life1 JobHandle,
    ) -> Pin<Box<dyn Future<Output = Result<Option<QuantumResults>, QuantumError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn cancel<'life0, 'life1, 'async_trait>(
        &'life0 self,
        handle: &'life1 JobHandle,
    ) -> Pin<Box<dyn Future<Output = Result<(), QuantumError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Abstraction over neutral-atom analog quantum processors.

All implementations MUST be object-safe so backends can be stored as Box<dyn QuantumBackend> for runtime selection / fallback chaining.

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn max_qubits(&self) -> usize

Source

fn health_check<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<BackendStatus, QuantumError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn submit_evolution<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, register: &'life1 [(String, [f64; 2])], state: &'life2 QuantumCognitiveState, params: EvolutionParams, ) -> Pin<Box<dyn Future<Output = Result<JobHandle, QuantumError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Submit an evolution of the given quantum state on the given register. Register coordinates are in micrometers.

Source

fn poll<'life0, 'life1, 'async_trait>( &'life0 self, handle: &'life1 JobHandle, ) -> Pin<Box<dyn Future<Output = Result<JobStatus, QuantumError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_results<'life0, 'life1, 'async_trait>( &'life0 self, handle: &'life1 JobHandle, ) -> Pin<Box<dyn Future<Output = Result<Option<QuantumResults>, QuantumError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn cancel<'life0, 'life1, 'async_trait>( &'life0 self, handle: &'life1 JobHandle, ) -> Pin<Box<dyn Future<Output = Result<(), QuantumError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§