pub struct SiliconQuantumDotSystem {
pub num_dots: usize,
pub dots: Vec<SiliconQuantumDot>,
pub coupling_matrix: Array2<f64>,
pub global_state: Option<Array1<Complex64>>,
pub device_params: DeviceParams,
}
Expand description
Silicon quantum dot system
Fields§
§num_dots: usize
Number of quantum dots
dots: Vec<SiliconQuantumDot>
Individual quantum dots
coupling_matrix: Array2<f64>
Interdot coupling matrix (tunnel couplings)
global_state: Option<Array1<Complex64>>
Global system state (for small systems)
device_params: DeviceParams
Device geometry parameters
Implementations§
Source§impl SiliconQuantumDotSystem
impl SiliconQuantumDotSystem
Sourcepub fn new(
dot_configs: Vec<(QuantumDotType, QuantumDotParams, [f64; 2])>,
device_params: DeviceParams,
) -> Self
pub fn new( dot_configs: Vec<(QuantumDotType, QuantumDotParams, [f64; 2])>, device_params: DeviceParams, ) -> Self
Create new silicon quantum dot system
Sourcepub fn set_coupling(
&mut self,
dot1: usize,
dot2: usize,
coupling: f64,
) -> QuantRS2Result<()>
pub fn set_coupling( &mut self, dot1: usize, dot2: usize, coupling: f64, ) -> QuantRS2Result<()>
Set interdot coupling
Sourcepub fn calculate_distance_coupling(&mut self) -> QuantRS2Result<()>
pub fn calculate_distance_coupling(&mut self) -> QuantRS2Result<()>
Calculate coupling based on distance
Sourcepub fn apply_exchange_interaction(
&mut self,
dot1: usize,
dot2: usize,
duration: f64,
) -> QuantRS2Result<()>
pub fn apply_exchange_interaction( &mut self, dot1: usize, dot2: usize, duration: f64, ) -> QuantRS2Result<()>
Apply exchange interaction between two dots
Sourcepub fn apply_magnetic_pulse(
&mut self,
target_dots: &[usize],
field_amplitude: f64,
duration: f64,
phase: f64,
) -> QuantRS2Result<()>
pub fn apply_magnetic_pulse( &mut self, target_dots: &[usize], field_amplitude: f64, duration: f64, phase: f64, ) -> QuantRS2Result<()>
Apply magnetic field pulse
Sourcepub fn apply_electric_pulse(
&mut self,
target_dots: &[usize],
field_amplitude: f64,
duration: f64,
) -> QuantRS2Result<()>
pub fn apply_electric_pulse( &mut self, target_dots: &[usize], field_amplitude: f64, duration: f64, ) -> QuantRS2Result<()>
Apply electric field pulse (for charge qubits)
Sourcepub fn apply_decoherence(&mut self, time_step: f64) -> QuantRS2Result<()>
pub fn apply_decoherence(&mut self, time_step: f64) -> QuantRS2Result<()>
Simulate decoherence effects
Sourcepub fn measure_all(&mut self) -> QuantRS2Result<Vec<usize>>
pub fn measure_all(&mut self) -> QuantRS2Result<Vec<usize>>
Measure all dots
Sourcepub fn calculate_fidelity(&self, target_state: &[Vec<Complex64>]) -> f64
pub fn calculate_fidelity(&self, target_state: &[Vec<Complex64>]) -> f64
Get system fidelity (simplified)
Sourcepub fn average_coherence_time(&self) -> f64
pub fn average_coherence_time(&self) -> f64
Get average coherence time
Trait Implementations§
Source§impl Clone for SiliconQuantumDotSystem
impl Clone for SiliconQuantumDotSystem
Source§fn clone(&self) -> SiliconQuantumDotSystem
fn clone(&self) -> SiliconQuantumDotSystem
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 SiliconQuantumDotSystem
impl RefUnwindSafe for SiliconQuantumDotSystem
impl Send for SiliconQuantumDotSystem
impl Sync for SiliconQuantumDotSystem
impl Unpin for SiliconQuantumDotSystem
impl UnwindSafe for SiliconQuantumDotSystem
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.