From 569fce397132df7a9510b55cf613ae35483a0e63 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 25 Aug 2023 14:57:04 -0400 Subject: [PATCH] Remove algorithms tutorials (#10682) (#10709) * Remove algorithms tutorials * Also update github * Add guidance on tutorials index page * Bad version equivalency (cherry picked from commit 021b0ff8a0a2443aa87f884f606d51c273451888) Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com> --- .azure/tutorials-linux.yml | 2 +- .github/workflows/docs_deploy.yml | 2 +- docs/tutorials.rst | 20 +++++++----- docs/tutorials/algorithms/placeholder.ipynb | 34 --------------------- 4 files changed, 14 insertions(+), 44 deletions(-) delete mode 100644 docs/tutorials/algorithms/placeholder.ipynb diff --git a/.azure/tutorials-linux.yml b/.azure/tutorials-linux.yml index de84d3fa8f4..279ca89175e 100644 --- a/.azure/tutorials-linux.yml +++ b/.azure/tutorials-linux.yml @@ -20,7 +20,7 @@ jobs: displayName: 'Install dependencies' # Sync with '.github/workflows/docs_deploy.yml' - - bash: tools/prepare_tutorials.bash algorithms circuits circuits_advanced operators + - bash: tools/prepare_tutorials.bash circuits circuits_advanced operators displayName: 'Download current tutorials' - bash: tox -e tutorials diff --git a/.github/workflows/docs_deploy.yml b/.github/workflows/docs_deploy.yml index 5067cf49267..6275e028202 100644 --- a/.github/workflows/docs_deploy.yml +++ b/.github/workflows/docs_deploy.yml @@ -55,7 +55,7 @@ jobs: # Sync with '.azure/tutorials-linux.yml'. - name: Download current tutorials - run: tools/prepare_tutorials.bash algorithms circuits circuits_advanced operators + run: tools/prepare_tutorials.bash circuits circuits_advanced operators shell: bash # This is just to have tox create the environment, so we can use it to execute the tutorials. diff --git a/docs/tutorials.rst b/docs/tutorials.rst index 435645ec690..8ba7a73df89 100644 --- a/docs/tutorials.rst +++ b/docs/tutorials.rst @@ -4,6 +4,12 @@ Tutorials ========= +.. note:: + The Simulators tutorials have moved to + `Qiskit Aer `_ + and the Algorithms tutorials to + `Qiskit Algorithms `_. + Introductory ============ @@ -29,17 +35,15 @@ Advanced circuits tutorials/circuits_advanced/* -Algorithms -========== - -.. nbgallery:: - :glob: - - tutorials/algorithms/* - Operators ========= +.. deprecated:: 0.24.0 + The operators tutorials rely on the ``opflow`` module, which has been deprecated since + Qiskit 0.43 (aka Qiskit Terra 0.24). Refer to the + `Opflow migration guide `_. + These tutorials will be removed in the future. + .. nbgallery:: :glob: diff --git a/docs/tutorials/algorithms/placeholder.ipynb b/docs/tutorials/algorithms/placeholder.ipynb deleted file mode 100644 index 6f1c1caae82..00000000000 --- a/docs/tutorials/algorithms/placeholder.ipynb +++ /dev/null @@ -1,34 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Placeholder", - "\n", - "This is only here to test the infrastructure for tutorials. It will be removed with our actual tutorials from qiskit-tutorials once finishing the metapackage migration." - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.9.16" - } - }, - "nbformat": 4, - "nbformat_minor": 4 -}