pub struct FermionicSimulator { /* private fields */ }
Expand description
Fermionic simulator with SciRS2 optimization
Implementations§
Source§impl FermionicSimulator
impl FermionicSimulator
Sourcepub fn with_scirs2_backend(self) -> Result<Self>
pub fn with_scirs2_backend(self) -> Result<Self>
Initialize with SciRS2 backend
Sourcepub fn set_initial_state(&mut self, occupation: &[bool]) -> Result<()>
pub fn set_initial_state(&mut self, occupation: &[bool]) -> Result<()>
Set initial fermionic state
Sourcepub fn apply_fermionic_operator(&mut self, op: &FermionicOperator) -> Result<()>
pub fn apply_fermionic_operator(&mut self, op: &FermionicOperator) -> Result<()>
Apply fermionic operator
Sourcepub fn apply_fermionic_string(
&mut self,
fermionic_string: &FermionicString,
) -> Result<()>
pub fn apply_fermionic_string( &mut self, fermionic_string: &FermionicString, ) -> Result<()>
Apply fermionic string
Sourcepub fn expectation_value(&mut self, op: &FermionicOperator) -> Result<Complex64>
pub fn expectation_value(&mut self, op: &FermionicOperator) -> Result<Complex64>
Compute expectation value of fermionic operator
Sourcepub fn evolve_hamiltonian(
&mut self,
hamiltonian: &FermionicHamiltonian,
time: f64,
) -> Result<()>
pub fn evolve_hamiltonian( &mut self, hamiltonian: &FermionicHamiltonian, time: f64, ) -> Result<()>
Evolve under fermionic Hamiltonian
Sourcepub fn get_particle_number(&self) -> f64
pub fn get_particle_number(&self) -> f64
Get number of particles in current state
Sourcepub fn get_stats(&self) -> &FermionicStats
pub fn get_stats(&self) -> &FermionicStats
Get simulation statistics
Auto Trait Implementations§
impl Freeze for FermionicSimulator
impl !RefUnwindSafe for FermionicSimulator
impl Send for FermionicSimulator
impl Sync for FermionicSimulator
impl Unpin for FermionicSimulator
impl !UnwindSafe for FermionicSimulator
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 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.