QuantumDevice

Trait QuantumDevice 

Source
pub trait QuantumDevice {
    // Required methods
    fn is_available<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = DeviceResult<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn qubit_count<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = DeviceResult<usize>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn properties<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = DeviceResult<HashMap<String, String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn is_simulator<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = DeviceResult<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

General representation of quantum hardware

Required Methods§

Source

fn is_available<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = DeviceResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if the device is available for use

Source

fn qubit_count<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = DeviceResult<usize>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the number of qubits on the device

Source

fn properties<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = DeviceResult<HashMap<String, String>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get device properties such as error rates, connectivity, etc.

Source

fn is_simulator<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = DeviceResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if the device is a simulator

Implementors§