Python Installation InstructionsΒΆ

Assuming you have already completed the base installation Instructions, the rest of the Python installation instructions is fairly simple:

  1. change into the correct directory:

    $ cd path/to/qiskit-fermions
    
  2. install the Python installation tooling

    $ pip install --group build
    
  3. compile the pyext crate:

    $ make pyext
    
  4. install the Python package:

    $ make pyinstall
    
  5. ensure that the shared library object can be found during linking:

    Copy and export the LD_LIBRARY_PATH from the output below.

    $ make echo_ld_lib_path
    

    Copy and export the DYLD_LIBRARY_PATH from the output below.

    $ make echo_ld_lib_path
    
  6. ensure that you copy and run the output above

  7. verify that everything worked by running the Python API tests:

    $ make testpython
    

From now on, you need to ensure that you always export the LD_LIBRARY_PATH as before when you want to use this Python package.