Coder Social home page Coder Social logo

qed-ci's Introduction

Utilizes the psi4numpy helper_CI machinery to do QED-CI up to QED-FCI.

Within the src/ directory:

  • helper_cqed_rhf.py provides restricted hartree fock for the Pauli-Fierz Hamiltonian in the coherent state basis
  • helper_cs_cqed_cis.py provides spin-adapted QED-CIS for Pauli-Fierz Hamiltonian in the coherent state basis
  • helper_PFCI.py provides helper functions for arbitrary CI with Pauli-Fierz Hamiltonian, should be adapted to build PF Hamiltonian

Description

Updates to helper_PFCI towards PF-CASCI calculations in different orbital bases

Todos

The generation of determinant lists has been broken up into two methods based on the appropriate CI Level. Keywords for the CI level can now be passed to methods for building the PF Hamiltonian. A method for computing the 1RDM from the CIS determinants based on @nhv17 's implementation has been added.

  • generateCISDeterminants will create the CIS determinants and store associated information to attributes with "CIS" in the name, e.g. .CISdets"
  • .CISexcitation_index and .CISsingdetsign for use in computing the CIS 1RDM is computed by generateCISDeterminants
  • generateCASDeterminants will create the CASCI determinants and associated information to attributes with "CAS" in the name, e.g. .CASdets
  • buildConstantMatrices now takes a keyword for the CI Level (e.g. "CIS" or "CAS") and will build numDet x numDet constant matrices appropriately
  • generatePFHMatrix now takes a keyword for the CI level (e.g. "CIS" or "CAS") and will use the appropriate determinant list to build the CI matrix
  • calc1RDMfromCIS(c_vec) will compute the 1-RDM from a given CIS vector using the CISsingdetssign information determined by the generateCISDeterminants method. It must be supplied a CIS vector for a desired state following diagonalizing H_CIS
  • Code still needs to be added to form the natural orbitals
  • Code still needs to be added to form the CASCI Hamiltonian in a desired orbital basis
  • Unit tests for things like the trace of the 1RDMs and the 1e energy should be added sooner than later

Compile c shared library

Intel compiler is required for the use of LAPACKE library

  • icx -fPIC -Wall -Wextra -qopenmp -c cfunctions.c
  • icx -shared -o cfunctions.so cfunctions.o

Compile in MacOS

Needs OpenBLAS and GNU gcc (brew install openblas gcc)

gcc-13 -Ofast -fPIC -c -g -Wall -fopenmp -I/usr/local/opt/openblas/include cfunctions.c -DOPENBLAS
gcc-13 -shared -Wl,-install_name,cfunctions.so -o cfunctions.so cfunctions.o -lgomp -L/usr/local/opt/openblas/lib -lopenblas

qed-ci's People

Contributors

dmejiar avatar foleylab avatar nhv17 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.