qc2nl / qc2

Facilitate the orchestration of quantum chemistry applications on quantum computers
https://qc2.readthedocs.io/
Apache License 2.0
3 stars 2 forks source link

Explore Data structure from Qiskit and/or Pennylane #17

Closed NicoRenaud closed 1 year ago

NicoRenaud commented 1 year ago

Find out what is needed for Qiskit and Peenylane to run a simple VQE

Cmurilochem commented 1 year ago

Image

After a close look into qiskit-nature and pennylane source codes, I suggest the above coupling schema.

Few remarks:

  1. As expected, our qc2 data format must gather (from the ase calculators) at least information about:

    • the molecule: atom types, positions, multiplicity, # of electrons, multiplicity.
    • calculation results: hf energy, nuclear repulsion energy, one body integrals (MO basis), two body integrals (MO basis). For qiskit-nature, we would additionally need MO coefficients and one-electron integrals (Fock matrix in the AO basis). Further details to be discussed later in #1
  2. To couple our qc2 interface with OpenFermion/Pennylane and Qiskit-nature, I suggest developing "translators" that could convert our qc2-formatted file, say qc2_output.h5, into the corresponding accepted formats into these QC software frameworks. These are:

  1. The above generated files could then be internally loaded by OpenFermion/Pennylane and Qiskit-nature and contain by built-in all we need to proceed with a (simple) VQE calculations.

I have made short "mock" programs to test the above suggestion. Further details and discussions to come...