PropertyIndexer_t Derived Type

type, public, abstract :: PropertyIndexer_t


Components

Type Visibility Attributes Name Initial
integer(kind=int64), public, allocatable :: allowed_composition_indices(:)
integer, public :: n_spin_orbs_

The number of spin orbitals of underlying determinants.

integer, public :: prop_vec_sum_

The sum of the property vectors. In the case of PropVec this is the particle number.

integer, public :: prop_vec_dim_

The dimension of the property vector (corresponds to number of PropVec spaces for pure PropVec)


Type-Bound Procedures

procedure, public :: idx_prop_vec

  • private pure function idx_prop_vec(this, prop_vec) result(idx)

    Get the index of a property vector.

    Read more…

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this
    integer, intent(in) :: prop_vec(:)

    Return Value integer

procedure, public :: idx_nI => get_idx_prop_vec_det

  • private pure function get_idx_prop_vec_det(this, nI) result(idx)

    Calculate the property vector index for a determinant nI

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this
    integer, intent(in) :: nI(:)

    The determinant for which the prop_vec index should be calculated.

    Return Value integer

generic, public :: lookup_prop_vec_idx => lookup_prop_vec_idx_nI

  • private pure function lookup_prop_vec_idx_nI(this, idet, nI) result(idx)

    Use a precomputed prop_vec index from global_det_data.

    Read more…

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this
    integer, intent(in) :: idet

    The index of nI in the FciMCData::CurrentDets array.

    integer, intent(in) :: nI(:)

    The determinant for which the prop_vec index should be calculated.

    Return Value integer

procedure, private :: lookup_prop_vec_idx_nI

  • private pure function lookup_prop_vec_idx_nI(this, idet, nI) result(idx)

    Use a precomputed prop_vec index from global_det_data.

    Read more…

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this
    integer, intent(in) :: idet

    The index of nI in the FciMCData::CurrentDets array.

    integer, intent(in) :: nI(:)

    The determinant for which the prop_vec index should be calculated.

    Return Value integer

procedure, public :: n_prop_vecs => get_n_prop_vecs

procedure, public :: get_prop_vecs

  • private pure function get_prop_vecs(this) result(res)

    Get the ordered compositions of n into k summands constrained by cumulative minima and maxima.

    Read more…

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this

    Return Value integer, allocatable, (:,:)

procedure(is_allowed_single_t), private, deferred :: is_allowed_single

  • pure function is_allowed_single_t(this, exc, prop_vec) Prototype

    Check if a single excitation is allowed.

    Is called once at initialization, so it does not have to be super fast.

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this
    type(Excite_1_t), intent(in) :: exc
    integer, intent(in) :: prop_vec(:)

    Return Value logical

procedure(is_allowed_double_t), private, deferred :: is_allowed_double

  • pure function is_allowed_double_t(this, exc, prop_vec) Prototype

    Check if a double excitation is allowed.

    Is called once at initialization, so it does not have to be super fast.

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this
    type(Excite_2_t), intent(in) :: exc
    integer, intent(in) :: prop_vec(:)

    Return Value logical

procedure(is_allowed_triple_t), private, deferred :: is_allowed_triple

  • pure function is_allowed_triple_t(this, exc, prop_vec) Prototype

    Check if a double excitation is allowed.

    Is called once at initialization, so it does not have to be super fast.

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this
    type(Excite_3_t), intent(in) :: exc
    integer, intent(in) :: prop_vec(:)

    Return Value logical

procedure(is_allowed_configurations_t), private, deferred :: is_allowed_configurations

  • pure function is_allowed_configurations_t(this, nI, nJ) Prototype

    Check if an excitation nI -> nJ is allowed.

    Is called once at initialization, so it does not have to be super fast.

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this
    integer, intent(in) :: nI(nEl)
    integer, intent(in) :: nJ(nEl)

    Return Value logical

  • pure function is_allowed_single_t(this, exc, prop_vec) Prototype

    Check if a single excitation is allowed.

    Is called once at initialization, so it does not have to be super fast.

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this
    type(Excite_1_t), intent(in) :: exc
    integer, intent(in) :: prop_vec(:)

    Return Value logical

  • pure function is_allowed_double_t(this, exc, prop_vec) Prototype

    Check if a double excitation is allowed.

    Is called once at initialization, so it does not have to be super fast.

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this
    type(Excite_2_t), intent(in) :: exc
    integer, intent(in) :: prop_vec(:)

    Return Value logical

  • pure function is_allowed_triple_t(this, exc, prop_vec) Prototype

    Check if a double excitation is allowed.

    Is called once at initialization, so it does not have to be super fast.

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this
    type(Excite_3_t), intent(in) :: exc
    integer, intent(in) :: prop_vec(:)

    Return Value logical

  • pure function is_allowed_configurations_t(this, nI, nJ) Prototype

    Check if an excitation nI -> nJ is allowed.

    Is called once at initialization, so it does not have to be super fast.

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this
    integer, intent(in) :: nI(nEl)
    integer, intent(in) :: nJ(nEl)

    Return Value logical

procedure, public :: dyn_is_allowed

  • private pure function dyn_is_allowed(this, exc, prop_vec)

    Check if an excitation is allowed.

    Read more…

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this
    class(Excitation_t), intent(in) :: exc
    integer, intent(in) :: prop_vec(:)

    Return Value logical

procedure(idxer_gen_all_excits_t), public, deferred :: gen_all_excits

  • subroutine idxer_gen_all_excits_t(this, nI, n_excits, det_list, ic) Prototype

    Get all excitated determinants from det_I that are allowed under PropVec constraints.

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this
    integer, intent(in) :: nI(:)

    Starting determinant

    integer, intent(out) :: n_excits

    Number of determinants

    integer(kind=n_int), intent(out), allocatable :: det_list(:,:)

    Allocatable array of determinants in ilut format

    integer, intent(in), optional :: ic

    Optional input for excitation level (ic=1 => singles, ic=2 => doubles) If ommited generate all.

procedure(to_prop_vec_nI_t), private, deferred :: to_prop_vec_nI

  • pure function to_prop_vec_nI_t(this, nI) result(prop_vec) Prototype

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this
    integer, intent(in) :: nI(:)

    Return Value integer, (this%prop_vec_dim())

generic, public :: to_prop_vec => to_prop_vec_nI

  • pure function to_prop_vec_nI_t(this, nI) result(prop_vec) Prototype

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this
    integer, intent(in) :: nI(:)

    Return Value integer, (this%prop_vec_dim())

procedure, public :: prop_vec_dim

  • private elemental function prop_vec_dim(this)

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this

    Return Value integer

procedure, public :: n_spin_orbs

  • private elemental function n_spin_orbs(this)

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this

    Return Value integer

procedure, public :: prop_vec_sum

  • private elemental function prop_vec_sum(this)

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this

    Return Value integer

procedure(write_to_t), public, deferred :: write_to

  • subroutine write_to_t(this, iunit) Prototype

    Write a string representation of this PropVec specification to iunit

    Arguments

    Type IntentOptional Attributes Name
    class(PropertyIndexer_t), intent(in) :: this
    integer, intent(in) :: iunit