UBuntu - Open-Quantum-Platform/openqp GitHub Wiki

The Ubuntu requires special attention to the installation of prerequisites.

  1. Updating and Upgrading Ubuntu.
sudo add-apt-repository universe
sudo add-apt-repository main
sudo apt-get update -y
  1. Installations by apt.
sudo apt-get install -y ninja-build liblapack-dev
sudo apt -y install python3-pip 
sudo apt -y install python3-cffi git gfortran g++ pkg-config libhdf5-dev libblis-dev liblapack-dev libopenblas-base
  1. Installations by pip and snap. Snap is needed to install recent version of cmake.
sudo pip install meson dftd4
sudo snap install cmake 
sudo ln -s /snap/bin/cmake /usr/bin/cmake
  1. Setting the PATH for cmake in .bashrc in the case of version 3.27.6.
export PATH=~/cmake-3.27.6-linux-x86_64/bin:$PATH
  1. Setting Intel Math Library, if you have installed it.
source ~/intel/oneapi/setvars.sh

Going back to Installation