diff --git a/.github/actions/install-main-dependencies/action.yml b/.github/actions/install-main-dependencies/action.yml index 07566120..913f1cc6 100644 --- a/.github/actions/install-main-dependencies/action.yml +++ b/.github/actions/install-main-dependencies/action.yml @@ -81,7 +81,7 @@ runs: source "$CONDA/etc/profile.d/conda.sh" conda activate scsenv fi - pip install -U qiskit + pip install -U 'qiskit<1' fi shell: bash - name: Install stable Aer diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 20ee1053..f71aa786 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -67,7 +67,7 @@ jobs: os: ${{ matrix.os }} - name: Install Dependencies run: | - pip install jupyter qiskit[visualization] + pip install jupyter 'qiskit[visualization]<1' sudo apt-get -y install pandoc graphviz sudo apt-get -y install python3-enchant sudo apt-get -y install hunspell-en-us @@ -245,7 +245,7 @@ jobs: os: ${{ matrix.os }} - name: Install Dependencies run: | - pip install jupyter qiskit[visualization] + pip install jupyter 'qiskit[visualization]<1' sudo apt-get install -y pandoc graphviz shell: bash - name: Run Qiskit Optimization Tutorials diff --git a/requirements.txt b/requirements.txt index c7563715..a8dbbc25 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -qiskit>=0.44 +qiskit>=0.44,<1 qiskit-algorithms>=0.2.0 scipy>=1.9.0 numpy>=1.17 diff --git a/tox.ini b/tox.ini index ca4cbc50..83a36125 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,7 @@ setenv = LANGUAGE=en_US LC_ALL=en_US.utf-8 ARGS="-V" -deps = git+https://github.com/Qiskit/qiskit.git +deps = qiskit<1 -r{toxinidir}/requirements.txt -r{toxinidir}/requirements-dev.txt cplex