# Molecules in the minimal basis

**URL:** <https://discuss.pennylane.ai/t/molecules-in-the-minimal-basis/470>\
**Category:** PennyLane Help\
**Created:** [July 14, 2020, 1:30pm UTC](https://discuss.pennylane.ai/t/molecules-in-the-minimal-basis/470 "2020-07-14T13:30:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anton\_Simen](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/anton_simen/32/234_2.png) [@Anton\_Simen](https://discuss.pennylane.ai/u/Anton_Simen)\
**Post date:** [July 14, 2020, 1:30pm UTC](https://discuss.pennylane.ai/t/molecules-in-the-minimal-basis/470/1 "2020-07-14T13:30:03Z")

</div>

Hi! Could you give me a tip about how to represent molecules in the minimal basis? I want to learn a manner to do that in computational basis for any type of molecules.

My goal is learn how to simulate molecules using VQE but firstly I want to learn how to do it by hand (without libraries) in order to understand the process.

Thank you!

---

<div class="post-metadata">

**Author:** ![sjahangiri](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/sjahangiri/32/1443_2.png) [@sjahangiri](https://discuss.pennylane.ai/u/sjahangiri)\
**Post date:** [July 14, 2020, 4:33pm UTC](https://discuss.pennylane.ai/t/molecules-in-the-minimal-basis/470/2 "2020-07-14T16:33:18Z")

</div>

Hi @Anton_Simen and welcome to the forum!

To simulate a molecule with VQE, we first need to perform Hartree-Fock calculations which provide us with parameters that are needed to build the qubit Hamiltonian of a molecule. In the Hartree-Fock method, the many-body wave function of a molecule is approximated by a [Slater determinant](https://en.wikipedia.org/wiki/Slater_determinant). The components of this determinant are molecular spin-orbitals where each spatial molecular orbital is represented as a linear combination of atomic orbitals. A basis set represents a set of functions that are used to construct the atomic orbitals. For example, we can use [Slater](https://en.wikipedia.org/wiki/Slater-type_orbital) functions or [Gaussian](https://en.wikipedia.org/wiki/Gaussian_orbital) functions to define our basis set. In a minimal basis set, only one basis function is used for each atomic orbital. We can go beyond the minimal basis by adding extra functions to our basis set.

However, please note that Hartree-Fock calculations are not straightforward and are typically done by using quantum chemistry packages such as [PySCF](https://sunqm.github.io/pyscf/) or [Psi4](http://www.psicode.org/) which have built-in basis sets. PennyLane uses these programs to perform Hartree-Fock calculations and the user only needs to specify the name of the basis set which, for example, can be [sto-3g](https://en.wikipedia.org/wiki/STO-nG_basis_sets).

If you are interested to construct your basis set manually, I recommend reading Reference #2 given in this [tutorial](https://pennylane.ai/qml/demos/tutorial_quantum_chemistry.html) first. I also recommend reading the manuals of [PySCF](https://sunqm.github.io/pyscf/) or [Psi4](http://www.psicode.org/) programs and maybe doing some basic calculations with them to get a better understanding of the Hartree-Fock calculations. This [website](https://www.basissetexchange.org/) also provides a wide range of basis sets for the periodic table elements.

Please let us know if you need any help or if you have any further questions.

---

<div class="post-metadata">

**Author:** ![Anton\_Simen](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/anton_simen/32/234_2.png) [@Anton\_Simen](https://discuss.pennylane.ai/u/Anton_Simen)\
**Post date:** [July 16, 2020, 3:27pm UTC](https://discuss.pennylane.ai/t/molecules-in-the-minimal-basis/470/3 "2020-07-16T15:27:36Z")

</div>

Thank you very much for your answer! I will follow all these tips and after a while I will come back here to discuss what has evolved. I’m sure it’s will be help me a lot.

---

<div class="post-metadata">

**Author:** ![sjahangiri](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/sjahangiri/32/1443_2.png) [@sjahangiri](https://discuss.pennylane.ai/u/sjahangiri)\
**Post date:** [July 16, 2020, 3:49pm UTC](https://discuss.pennylane.ai/t/molecules-in-the-minimal-basis/470/4 "2020-07-16T15:49:44Z")

</div>

That is great @Anton_Simen! We will be happy to help.
