ampsci
High-precision calculations for one- and two-valence atomic systems
CI::CSF2

Very basic two-electron CSF. Only two-electron is implemented. More...

#include <CSF.hpp>

Public Member Functions

 CSF2 (const DiracSpinor &a, const DiracSpinor &b)
 
DiracSpinor::Index state (std::size_t i) const
 
int parity () const
 Parity of the CSF, +/-1.
 
std::string config (bool relativistic=false) const
 Single-particle configuration as a string, in relativistic or non-rel form.
 

Static Public Member Functions

static int num_different (const CSF2 &A, const CSF2 &B)
 Returns number of different orbitals between two CSFs.
 
static std::array< DiracSpinor::Index, 2 > diff_1_na (const CSF2 &V, const CSF2 &X)
 returns different orbitals, for case where CSFs differ by 1. i.e., returns {n,a} where |V> = |X_a^n> (i.e., V has n, but not a)
 
static DiracSpinor::Index same_1_j (const CSF2 &A, const CSF2 &B)
 Returns the state in A and B that is the same (assumes A and B differ by 1)
 

Public Attributes

std::array< DiracSpinor::Index, 2 > states
 

Friends

bool operator== (const CSF2 &A, const CSF2 &B)
 
bool operator!= (const CSF2 &A, const CSF2 &B)
 

Detailed Description

Very basic two-electron CSF. Only two-electron is implemented.

Member Function Documentation

◆ num_different()

int CI::CSF2::num_different ( const CSF2 A,
const CSF2 B 
)
static

Returns number of different orbitals between two CSFs.

◆ diff_1_na()

std::array< DiracSpinor::Index, 2 > CI::CSF2::diff_1_na ( const CSF2 V,
const CSF2 X 
)
static

returns different orbitals, for case where CSFs differ by 1. i.e., returns {n,a} where |V> = |X_a^n> (i.e., V has n, but not a)

◆ same_1_j()

DiracSpinor::Index CI::CSF2::same_1_j ( const CSF2 A,
const CSF2 B 
)
static

Returns the state in A and B that is the same (assumes A and B differ by 1)

◆ parity()

int CI::CSF2::parity ( ) const

Parity of the CSF, +/-1.

◆ config()

std::string CI::CSF2::config ( bool  relativistic = false) const

Single-particle configuration as a string, in relativistic or non-rel form.


The documentation for this class was generated from the following files: