Installation Instructions¶
Caution
The installation process of this package has not been ironed out yet. Thus, for now it is important that you follow these instructions carefully.
Requirements¶
To compile and install this package, you need to install the following dependencies:
a Python (>=3.10) virtual environment
pip>=25.1
Preparation¶
Currently, the build process assumes a locally compiled version of Qiskit to be
located at build/qiskit. Thus, the following steps are required:
activate your Python environment
(only the first time) clone this repository:
$ git clone git@github.com:Qiskit/qiskit-fermions.git
change into the correct directory:
$ cd qiskit-fermions
(only the first time) clone Qiskit into the desired location:
$ git clone git@github.com:Qiskit/qiskit.git build/qiskit
compile Qiskit locally (first the C API, then the Python package):
$ cd build/qiskit $ make c $ pip install -r requirements.txt -c constraints.txt $ SETUPTOOLS_RUST_CARGO_PROFILE=release pip install -e .
symlink the compiled library (replace
*to match your local filename and update the.sosuffix if it differs on your platform):$ cd qiskit/ $ ln -s $(realpath _accelerate.*.so) libqiskit.so
$ cd qiskit/ $ ln -s $(realpath _accelerate.*.so) libqiskit.dylib
verify that everything worked by running the
qiskit-fermionsRust tests:$ cd ../../.. $ make testrust
Assuming everything above worked, you can now proceed with installing the C and Python APIs for this package!