pub struct DeviceInfo {Show 13 fields
pub platform: CloudPlatform,
pub name: String,
pub device_type: DeviceType,
pub num_qubits: usize,
pub connectivity: Vec<(usize, usize)>,
pub gate_set: Vec<String>,
pub gate_fidelities: HashMap<String, f64>,
pub t1_times: Vec<f64>,
pub t2_times: Vec<f64>,
pub readout_fidelity: Vec<f64>,
pub is_available: bool,
pub queue_depth: usize,
pub cost_per_shot: f64,
}Expand description
Backend device information
Fields§
§platform: CloudPlatformPlatform the device belongs to
name: StringDevice name
device_type: DeviceTypeDevice type (QPU or simulator)
num_qubits: usizeNumber of qubits
connectivity: Vec<(usize, usize)>Connectivity graph (which qubits are connected)
gate_set: Vec<String>Gate set supported by the device
gate_fidelities: HashMap<String, f64>Average gate fidelities
t1_times: Vec<f64>Qubit coherence times T1 (microseconds)
t2_times: Vec<f64>Qubit coherence times T2 (microseconds)
readout_fidelity: Vec<f64>Readout fidelity per qubit
is_available: boolWhether device is currently available
queue_depth: usizeQueue depth
cost_per_shot: f64Estimated cost per shot (in credits or USD)
Implementations§
Source§impl DeviceInfo
impl DeviceInfo
Sourcepub fn avg_single_qubit_fidelity(&self) -> f64
pub fn avg_single_qubit_fidelity(&self) -> f64
Get average single-qubit gate fidelity
Sourcepub fn avg_two_qubit_fidelity(&self) -> f64
pub fn avg_two_qubit_fidelity(&self) -> f64
Get average two-qubit gate fidelity
Sourcepub fn quality_score(&self) -> f64
pub fn quality_score(&self) -> f64
Calculate quality score for ranking devices
Trait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§fn clone(&self) -> DeviceInfo
fn clone(&self) -> DeviceInfo
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 moreAuto Trait Implementations§
impl Freeze for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.