Struct roqoqo_qiskit_devices::devices::IBMManilaDevice

source ·
pub struct IBMManilaDevice { /* private fields */ }

Implementations§

source§

impl IBMManilaDevice

source

pub fn new() -> Self

👎Deprecated since 0.2.0: Device ibmq_manila has been retired.

Creates a new IBMManilaDevice.

§Returns

An initiated IBMManilaDevice with single and two-qubit gates and decoherence rates set to zero.

source

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

Returns the IBM’s identifier.

§Returns

A str of the name IBM uses as identifier.

source§

impl IBMManilaDevice

source

pub fn set_single_qubit_gate_time( &mut self, gate: &str, qubit: usize, gate_time: f64, ) -> Result<(), RoqoqoError>

Setting the gate time of a single qubit gate.

§Arguments
  • gate - hqslang name of the single-qubit-gate.
  • qubit - The qubit for which the gate time is set.
  • gate_time - gate time for the given gate.
source

pub fn set_two_qubit_gate_time( &mut self, gate: &str, control: usize, target: usize, gate_time: f64, ) -> Result<(), RoqoqoError>

Setting the gate time of a two qubit gate.

§Arguments
  • gate - hqslang name of the two-qubit-gate.
  • control - The control qubit for which the gate time is set.
  • target - The target qubit for which the gate time is set.
  • gate_time - gate time for the given gate.
source

pub fn add_damping( &mut self, qubit: usize, damping: f64, ) -> Result<(), RoqoqoError>

Adds qubit damping to noise rates.

§Arguments
  • qubit - The qubit for which the dampins is added.
  • daming - The damping rates.
source

pub fn add_dephasing( &mut self, qubit: usize, dephasing: f64, ) -> Result<(), RoqoqoError>

Adds qubit dephasing to noise rates.

§Arguments
  • qubit - The qubit for which the dephasing is added.
  • dephasing - The dephasing rates.

Trait Implementations§

source§

impl Clone for IBMManilaDevice

source§

fn clone(&self) -> IBMManilaDevice

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for IBMManilaDevice

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for IBMManilaDevice

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for IBMManilaDevice

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<&IBMManilaDevice> for IBMDevice

source§

fn from(input: &IBMManilaDevice) -> Self

Converts to this type from the input type.
source§

impl From<IBMManilaDevice> for IBMDevice

source§

fn from(input: IBMManilaDevice) -> Self

Converts to this type from the input type.
source§

impl PartialEq for IBMManilaDevice

source§

fn eq(&self, other: &IBMManilaDevice) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl QoqoDevice for IBMManilaDevice

Implements QoqoDevice trait for IBMManilaDevice.

The QoqoDevice trait defines standard functions available for roqoqo devices.

source§

fn single_qubit_gate_time(&self, hqslang: &str, qubit: &usize) -> Option<f64>

Returns the gate time of a single qubit operation if the single qubit operation is available on device.

§Arguments
  • hqslang - The hqslang name of a single qubit gate.
  • qubit - The qubit the gate acts on.
§Returns
  • Some<f64> - The gate time.
  • None - The gate is not available on the device.
source§

fn single_qubit_gate_names(&self) -> Vec<String>

Returns the names of a single qubit operations available on the device.

§Returns
  • Vec<String> - The list of gate names.
source§

fn two_qubit_gate_time( &self, hqslang: &str, control: &usize, target: &usize, ) -> Option<f64>

Returns the gate time of a two qubit operation if the two qubit operation is available on device.

§Arguments
  • hqslang - The hqslang name of a two qubit gate.
  • control - The control qubit the gate acts on.
  • target - The target qubit the gate acts on.
§Returns
  • Some<f64> - The gate time.
  • None - The gate is not available on the device.
source§

fn two_qubit_gate_names(&self) -> Vec<String>

Returns the names of a two qubit operations available on the device.

§Returns
  • Vec<String> - The list of gate names.
source§

fn three_qubit_gate_time( &self, hqslang: &str, control_0: &usize, control_1: &usize, target: &usize, ) -> Option<f64>

Returns the gate time of a three qubit operation if the three qubit operation is available on device.

§Arguments
  • hqslang - The hqslang name of a two qubit gate.
  • control_0 - The control_0 qubit the gate acts on.
  • control_1 - The control_1 qubit the gate acts on.
  • target - The target qubit the gate acts on.
§Returns
  • Some<f64> - The gate time.
  • None - The gate is not available on the device.
source§

fn multi_qubit_gate_time(&self, hqslang: &str, qubits: &[usize]) -> Option<f64>

Returns the gate time of a multi qubit operation if the multi qubit operation is available on device.

§Arguments
  • hqslang - The hqslang name of a multi qubit gate.
  • qubits - The qubits the gate acts on.
§Returns
  • Some<f64> - The gate time.
  • None - The gate is not available on the device.
source§

fn multi_qubit_gate_names(&self) -> Vec<String>

Returns the names of a multi qubit operations available on the device.

The list of names also includes the three qubit gate operations.

§Returns
  • Vec<String> - The list of gate names.
source§

fn qubit_decoherence_rates(&self, qubit: &usize) -> Option<Array2<f64>>

Returns the matrix of the decoherence rates of the Lindblad equation.

§Arguments
  • qubit - The qubit for which the rate matrix is returned.
§Returns
  • Some<Array2<f64>> - The decoherence rates.
  • None - The qubit is not part of the device.
source§

fn number_qubits(&self) -> usize

Returns the number of qubits the device supports.

§Returns

usize - The number of qubits in the device.

source§

fn longest_chains(&self) -> Vec<Vec<usize>>

Return a list of longest linear chains through the device.

Returns at least one chain of qubits with linear connectivity in the device, that has the maximum possible number of qubits with linear connectivity in the device. Can return more that one of the possible chains but is not guaranteed to return all possible chains. (For example for all-to-all connectivity only one chain will be returned).

§Returns
  • Vec<Vec<usize>> - A list of the longest chains given by vectors of qubits in the chain.
source§

fn longest_closed_chains(&self) -> Vec<Vec<usize>>

Return a list of longest closed linear chains through the device.

Returns at least one chain of qubits with linear connectivity in the device , that has the maximum possible number of qubits with linear connectivity in the device. The chain must be closed, the first qubit needs to be connected to the last qubit. Can return more that one of the possible chains but is not guaranteed to return all possible chains. (For example for all-to-all connectivity only one chain will be returned).

§Returns
  • Vec<Vec<usize>> - A list of the longest chains given by vectors of qubits in the chain.
source§

fn two_qubit_edges(&self) -> Vec<(usize, usize)>

Returns the list of pairs of qubits linked with a native two-qubit-gate in the device.

A pair of qubits is considered linked by a native two-qubit-gate if the device can implement a two-qubit-gate between the two qubits without decomposing it into a sequence of gates that involves a third qubit of the device. The two-qubit-gate also has to form a universal set together with the available single qubit gates.

The returned vectors is a simple, graph-library independent, representation of the undirected connectivity graph of the device. It can be used to construct the connectivity graph in a graph library of the users choice from a list of edges and can be used for applications like routing in quantum algorithms.

§Returns

A list (Vec) of pairs of qubits linked with a native two-qubit-gate in the device.

§

fn add_active_gate_noise( &self, circuit: &Circuit, ) -> Result<Circuit, RoqoqoBackendError>

Adds the noise contributions due to qubit gates being applied Read more
§

fn change_device( &mut self, hqslang: &str, operation: &[u8], ) -> Result<(), RoqoqoBackendError>

Changes the device topology based on a Pragma operation. Read more
source§

impl Serialize for IBMManilaDevice

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for IBMManilaDevice

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,