pub struct QPUConfig {
pub num_qubits: usize,
pub quantum_execution: Option<QuantumExecution>,
}Expand description
Configuration of the quantum processing unit (QPU) available to this process.
Fields§
§num_qubits: usizeMaximum number of logical qubits that may be allocated by this process.
Attempting to allocate beyond this limit returns
KetError::QubitLimitExceeded.
quantum_execution: Option<QuantumExecution>The execution backend (live or batch) used to run circuits.
When None, gate sequences can be built but execution will fail.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for QPUConfig
impl !Send for QPUConfig
impl !Sync for QPUConfig
impl !UnwindSafe for QPUConfig
impl Freeze for QPUConfig
impl Unpin for QPUConfig
impl UnsafeUnpin for QPUConfig
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> 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 more