Skip to content

Allocation testing for Hamiltonians #323

@joachimbrand

Description

@joachimbrand

For the efficient performance of FCIQMC or matrix-free exact diagonalisation it is essential that the computation of matrix elements is done efficiently and without incurring heap allocations, as these calculations have to be performed within hot loops.

The functions provided in the module Rimu.InterfaceTests already provide basic tests to check that the interfaces for AbstractHamiltonian, AbstractOperator and AbstractObservable are correctly implemented. It would be useful for these functions to also test that the interface methods are allocation free.

This could be achieved by making use of AllocCheck.CheckAllocs, Test.@inferred and @allocated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions