How to install Quantum Espresso ?

In this post, I will show you how can you install the Quantum Espresso package in your Linux system (Ubuntu). I assume you have some prior experience of using a Linux system. In upcoming posts, I will be showing you how you can perform electronic structure calculations using Quantum Espresso. Please do comment and share your suggestions.

Without wasting your time, let’s install Quantum Espresso?

  1. First thing you need a laptop or a PC with a Linux system (Ubuntu) installed. You also need gfortran program to compile the QE source file.
  2.  To install gfortran run command sudo apt install gfortran in your terminal.
  3. Download the latest Quantum Espresso source file named qe-6.5-ReleasePack.tgz.
  4. Extract the downloaded file
  5. Rename the extracted folder ‘Quantum_Espresso6.5’. Renaming is optional.
  6. Now, Open the folder ‘Quantum_Espresso6.5’ in the terminal and run the command
    ./configure && make all
  7. It will take some time for compilation. After compilation, copy the folder ‘Quantum_Espresso6.5’ to /opt/ directory (note you can keep this folder anywhere you want).
  8. For this open terminal and run command sudo nautilus . This will open a file browser window. Now, go to the location where you kept the ‘Quantum_Espresso6.5’ folder, copy it, and paste it inside /opt folder. I have posted screenshots of the file manager to show how to find /opt folder. Let the copying of the folder and its content be complete.
  9. Since you are going to run programs of the QE package from the terminal, you need to tell your terminal where to look for the programs. For this, you need to edit .bashrc file. To open .bashrc file, open the terminal and run the command gedit ~/.bashrc . This will open .bashrc file in gedit program. You can use any other text editor program. Now add the line
    export PATH=/opt/Quantum_Espresso_6.5/bin:$PATH

    to the end of the .bashrc file and save it. Now, you are done installing QE.
  10.  To check whether the installation is successful, open a new terminal and type pw.x, and hit enter. If program pw.x runs then the installation is successful. If ‘Command pw.x not found’  message is displayed, then the problem might be in adding the path in .bashrc file. You should check that again.

I hope you were able to install Quantum Espresso successfully. If you experience any problem please let me know in the comment section.
I hope that you, your family, and friends are doing well in this troubling time.

[Total: 1   Average: 5/5]

17 thoughts on “How to install Quantum Espresso ?

  • May 10, 2020 at 4:21 PM

    Having read this I thought it was rather informative.
    I appreciate you finding the time and effort to put this content together.
    I once again find myself personally spending a lot of time both reading and leaving comments.
    But so what, it was still worth it!

  • June 20, 2020 at 9:59 AM

    I’m extremely impressed with your writing skills and also with the layout on your weblog.

    Is this a paid theme or did you customize it yourself?

    Anyway keep up the excellent quality writing, it is
    rare to see a great blog like this one nowadays.

  • June 21, 2020 at 10:15 AM

    Appreciation to my father who shared with me on the topic of this
    blog, this website is actually amazing.

  • June 21, 2020 at 7:27 PM

    Wonderful blog! I found it while surfing around on Yahoo News.
    Do you have any suggestions on how to get listed
    in Yahoo News? I’ve been trying for a while but I never seem to get
    there! Cheers

  • June 22, 2020 at 10:49 AM

    That is a good tip particularly to those fresh to the
    blogosphere. Simple but very accurate info… Appreciate your sharing this one.
    A must read article!

  • June 23, 2020 at 1:24 PM

    Having read this I believed it was really enlightening.
    I appreciate you finding the time and effort to put this article together.
    I once again find myself personally spending way too much time both reading and posting comments.
    But so what, it was still worthwhile!

  • June 23, 2020 at 1:27 PM

    Hey I am so happy I found your site, I really found
    you by mistake, while I was looking on Digg for something
    else, Nonetheless I am here now and would just like
    to say kudos for a remarkable post and a all round exciting blog (I
    also love the theme/design), I don’t have time to browse it all
    at the moment but I have book-marked it and also added your RSS feeds, so when I have time I will be
    back to read a great deal more, Please do keep up the excellent job.

  • June 24, 2020 at 8:09 PM

    Hi, this weekend is good designed for me, for the reason that this
    time i am reading this fantastic informative paragraph here at my

  • June 24, 2020 at 8:20 PM

    I was recommended this blog by my cousin. I am not sure
    whether or not this publish is written via him as no one else recognise such precise approximately my
    difficulty. You are wonderful! Thank you!

  • July 1, 2020 at 7:09 PM

    I love it whenever people come together and share views.
    Great blog, keep it up!

  • July 3, 2020 at 10:52 AM

    Piece of writing writing is also a fun, if you know after that you can write if not it
    is complicated to write.

  • July 4, 2020 at 8:01 PM

    Thanks for finally talking about > How to install Quantum Espresso ?

    – Sashi Nepal < Liked it!

  • July 5, 2020 at 11:40 AM

    Everything is very open with a precise clarification of the issues.

    It was definitely informative. Your website is useful.
    Many thanks for sharing!

  • July 5, 2020 at 12:01 PM

    Asking questions are really nice thing if you are
    not understanding something totally, but this post presents nice
    understanding yet.

  • August 25, 2020 at 11:20 AM

    I’m really enjoying the design and layout of
    your site. It’s a very easy on the eyes which makes it much more pleasant for me to come
    here and visit more often. Did you hire out a developer
    to create your theme? Outstanding work!

    Here is my page … Heidi


Leave a Reply

Your email address will not be published. Required fields are marked *