Code Monkey home page Code Monkey logo

1-norm_calculations's Introduction

1-Norm_calculations

Installation

To install the right libraries, start with a clean python 3.7 environment with numpy and matplotlib.

Install PySCF 1.7.1
With pip:
pip install pyscf==1.7.1
Or conda:
conda install -c pyscf pyscf==1.7.1

If you want to run CASCI calculations with this code, find your pyscf installation folder (usually in {Name of environment}/lib/python3.7/site-packages/pyscf), and please copy the file casci.py from this repository to the pyscf/mcscf/ folder and overwrite.

Now install the adapted code of OpenFermion and the OpenFermion-PySCF interface from my Fork repositories: git clone https://github.com/Emieeel/OpenFermion.git

Go to the right branch (important!) and install:

cd OpenFermion
git checkout 1normcalc
python -m pip install -e .

Same with the PySCF interface:
git clone https://github.com/Emieeel/OpenFermion-PySCF.git
cd OpenFermion-PySCF
git checkout localorb
python -m pip install -e .

Finally if you want to visualize molecules in a jupyter notebook, you can install py3Dmol.

To install py3dmol with pip, run
pip install py3Dmol
To install py3dmol with conda, run
conda install -c conda-forge py3dmol

Now you're ready to go!

For a tutorial to Calculating the 1-norm for different orbitals and molecules, see the notebook 1normcalc.ipynb in this repository.

1-norm_calculations's People

Contributors

emieeel avatar

Watchers

 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.