pub struct QuantumChemistrySimulator { /* private fields */ }Expand description
Quantum chemistry simulator
Implementations§
Source§impl QuantumChemistrySimulator
impl QuantumChemistrySimulator
Sourcepub fn new(config: ElectronicStructureConfig) -> Result<Self>
pub fn new(config: ElectronicStructureConfig) -> Result<Self>
Create new quantum chemistry simulator
Sourcepub fn set_molecule(&mut self, molecule: Molecule) -> Result<()>
pub fn set_molecule(&mut self, molecule: Molecule) -> Result<()>
Set molecule for calculation
Sourcepub fn run_calculation(&mut self) -> Result<ElectronicStructureResult>
pub fn run_calculation(&mut self) -> Result<ElectronicStructureResult>
Run complete electronic structure calculation
Sourcepub fn construct_molecular_hamiltonian_public(
&mut self,
molecule: &Molecule,
) -> Result<()>
pub fn construct_molecular_hamiltonian_public( &mut self, molecule: &Molecule, ) -> Result<()>
Construct molecular Hamiltonian (public version)
Sourcepub const fn get_molecule(&self) -> Option<&Molecule>
pub const fn get_molecule(&self) -> Option<&Molecule>
Get molecule reference
Sourcepub fn compute_one_electron_integrals_public(
&self,
molecule: &Molecule,
num_orbitals: usize,
) -> Result<Array2<f64>>
pub fn compute_one_electron_integrals_public( &self, molecule: &Molecule, num_orbitals: usize, ) -> Result<Array2<f64>>
Compute one electron integrals (public version)
Sourcepub fn compute_two_electron_integrals_public(
&self,
molecule: &Molecule,
num_orbitals: usize,
) -> Result<Array4<f64>>
pub fn compute_two_electron_integrals_public( &self, molecule: &Molecule, num_orbitals: usize, ) -> Result<Array4<f64>>
Compute two electron integrals (public version)
Sourcepub fn compute_nuclear_repulsion_public(
&self,
molecule: &Molecule,
) -> Result<f64>
pub fn compute_nuclear_repulsion_public( &self, molecule: &Molecule, ) -> Result<f64>
Compute nuclear repulsion (public version)
Sourcepub fn create_fermionic_hamiltonian_public(
&self,
one_electron: &Array2<f64>,
two_electron: &Array4<f64>,
num_orbitals: usize,
) -> Result<FermionicHamiltonian>
pub fn create_fermionic_hamiltonian_public( &self, one_electron: &Array2<f64>, two_electron: &Array4<f64>, num_orbitals: usize, ) -> Result<FermionicHamiltonian>
Create fermionic Hamiltonian (public version)
Sourcepub fn get_ansatz_parameter_count_public(
&self,
circuit: &InterfaceCircuit,
) -> usize
pub fn get_ansatz_parameter_count_public( &self, circuit: &InterfaceCircuit, ) -> usize
Get ansatz parameter count (public version)
Sourcepub fn build_density_matrix_public(
&self,
orbitals: &Array2<f64>,
num_electrons: usize,
) -> Result<Array2<f64>>
pub fn build_density_matrix_public( &self, orbitals: &Array2<f64>, num_electrons: usize, ) -> Result<Array2<f64>>
Build density matrix (public version)
Auto Trait Implementations§
impl Freeze for QuantumChemistrySimulator
impl !RefUnwindSafe for QuantumChemistrySimulator
impl Send for QuantumChemistrySimulator
impl Sync for QuantumChemistrySimulator
impl Unpin for QuantumChemistrySimulator
impl !UnwindSafe for QuantumChemistrySimulator
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.