Let's see how to install the package. The first thing to do is choose how you're going to run and install the packages. There are two primary ways to do this:
First, create a minimal environment with only Python installed in it. We recommend using Python virtual environments.
python3 -m venv /path/to/virtual/environmentActivate your new environment.
source /path/to/virtual/environment/bin/activateNote: If you are using Windows, use the following commands in PowerShell:
python3 -m venv c:\path\to\virtual\environment
c:\path\to\virtual\environment\Scripts\Activate.ps1The most straightforward way to install the qiskit-addon-opt-mapper package is via PyPI.
pip install 'qiskit-addon-opt-mapper'Users who wish to develop in the repository or run the notebooks locally may want to install from source.
If so, the first step is to clone the qiskit-addon-opt-mapper repository.
git clone git@github.com:Qiskit/qiskit-addon-opt-mapper.gitNext, upgrade pip and enter the repository.
pip install --upgrade pip
cd qiskit-addon-opt-mapperThe next step is to install qiskit-addon-opt-mapper to the virtual environment. If you plan on running the notebooks, install the
notebook dependencies in order to run all the visualizations in the notebooks. If you plan on developing in the repository, you
may want to install the dev dependencies.
Adjust the options below to suit your needs.
pip install tox notebook -e '.[notebook-dependencies,dev]'If you installed the notebook dependencies, you can get started by running the notebooks in the docs.
cd docs/ jupyter lab