diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index 41f1e4e..0000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Build and deploy sphinx docs - -on: - workflow_dispatch: - push: - branches: - - main - - 'stable/**' - pull_request: - branches: - - main - - 'stable/**' - -jobs: - build_and_deploy_docs: - runs-on: ubuntu-latest - timeout-minutes: 60 - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 - with: - python-version: '3.9' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install tox - sudo apt-get update - sudo apt-get install -y pandoc - - name: Build docs - run: | - tox -edocs - # - name: Deploy docs - # if: ${{ github.ref == 'refs/heads/main' }} - # uses: peaceiris/actions-gh-pages@v3 - # with: - # github_token: ${{ secrets.GITHUB_TOKEN }} - # publish_dir: ./docs/_build/html/ diff --git a/README.md b/README.md index ee9a8a2..9e7406a 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -![Platform](https://img.shields.io/badge/Platform-Linux%20%7C%20macOS%20%7C%20Windows-informational) -[![Python](https://img.shields.io/badge/Python-3.8%20%7C%203.9%20%7C%203.10-informational)](https://www.python.org/) -[![Qiskit](https://img.shields.io/badge/Qiskit-%E2%89%A5%200.34.2-6133BD)](https://github.com/Qiskit/qiskit) -[![License](https://img.shields.io/github/license/qiskit-community/quantum-prototype-template?label=License)](https://github.com/qiskit-community/quantum-prototype-template/blob/main/LICENSE.txt) +![Platform](https://img.shields.io/badge/platform-Linux-blue) +[![Python](https://img.shields.io/badge/Python-3.8-informational)](https://www.python.org/) +[![Qiskit](https://img.shields.io/badge/Qiskit-%E2%89%A5%200.44.2-6133BD)](https://github.com/Qiskit/qiskit) +[![License](https://img.shields.io/github/license/quantumapplicationlab/vqls-prototype?label=License)](https://github.com/quantumapplicationlab/vqls-prototype/blob/main/LICENSE.txt) [![Code style: Black](https://img.shields.io/badge/Code%20style-Black-000.svg)](https://github.com/psf/black) -[![Tests](https://github.com/qiskit-community/quantum-prototype-template/actions/workflows/test_latest_versions.yml/badge.svg)](https://github.com/qiskit-community/quantum-prototype-template/actions/workflows/test_latest_versions.yml) -[![Coverage](https://coveralls.io/repos/github/qiskit-community/quantum-prototype-template/badge.svg?branch=main)](https://coveralls.io/github/qiskit-community/quantum-prototype-template?branch=main) +[![Tests](https://github.com/quantumapplicationlab/vqls-prototype/actions/workflows/coverage.yml/badge.svg)](https://github.com/quantumapplicationlab/vqls-prototype/actions/workflows/coverage.yml) +[![Coverage Status](https://coveralls.io/repos/github/QuantumApplicationLab/vqls-prototype/badge.svg?branch=main)](https://coveralls.io/github/QuantumApplicationLab/vqls-prototype?branch=main) # Variational Quantum Linear Solver Prototype diff --git a/docs/conf.py b/docs/conf.py index 6be2c46..96d08a2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -63,7 +63,7 @@ autoclass_content = "both" # nbsphinx options (for tutorials) -nbsphinx_timeout = 180 +nbsphinx_timeout = 600 nbsphinx_execute = "always" nbsphinx_widgets_path = "" exclude_patterns = ["_build", "**.ipynb_checkpoints"] diff --git a/docs/how_tos/03_how_to_use_runtime.ipynb b/docs/how_tos/03_how_to_use_runtime.ipynb index 2b64632..7b23e4b 100644 --- a/docs/how_tos/03_how_to_use_runtime.ipynb +++ b/docs/how_tos/03_how_to_use_runtime.ipynb @@ -65,7 +65,12 @@ "metadata": {}, "outputs": [], "source": [ - "from qiskit_ibm_runtime import QiskitRuntimeService, Estimator, Session, Options\n", + "from qiskit_ibm_runtime import (\n", + " QiskitRuntimeService,\n", + " Estimator,\n", + " Session,\n", + " EstimatorOptions,\n", + ")\n", "from vqls_prototype import VQLS, VQLSLog\n", "from qiskit_algorithms import optimizers as opt\n", "\n", @@ -79,11 +84,11 @@ " # start session\n", " with Session(service=service, backend=backend) as session:\n", " # options of the primitives\n", - " options = Options()\n", - " options.optimization_level = 3\n", + " options = EstimatorOptions()\n", + " options.resilience_level = 0\n", "\n", " # estimator\n", - " estimator = Estimator(session=session, options=options)\n", + " estimator = Estimator(mode=session, options=options)\n", "\n", " # log\n", " log = VQLSLog([], [])\n", diff --git a/docs/tutorials/vqls.ipynb b/docs/tutorials/vqls.ipynb index 0610cf1..bc74492 100644 --- a/docs/tutorials/vqls.ipynb +++ b/docs/tutorials/vqls.ipynb @@ -301,7 +301,7 @@ ], "metadata": { "kernelspec": { - "display_name": "qalcore", + "display_name": "vitens_wntr_1", "language": "python", "name": "python3" }, @@ -315,14 +315,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.13" + "version": "3.9.0" }, - "orig_nbformat": 4, - "vscode": { - "interpreter": { - "hash": "390591a6667b05d6f83558ed597f55be1305d4de992db830679d199a6a0e520c" - } - } + "orig_nbformat": 4 }, "nbformat": 4, "nbformat_minor": 2 diff --git a/tox.ini b/tox.ini index 2f1a5fa..7aa7373 100644 --- a/tox.ini +++ b/tox.ini @@ -23,7 +23,7 @@ envdir = .tox/lint extras = dev commands = black --check . - pylint -rn vqls_prototype tests --disable=C0200,C0103,W4902,C0116,E1101,C0103,C0115,R0902,R0913,R0903,R0914,C0412,W0621,W0246,C0114,R0801 + pylint -rn vqls_prototype tests --disable=C0200,C0103,W4902,C0116,E1101,C0103,C0115,R0902,R0913,R0903,R0914,C0412,W0621,W0246,C0114,R0801,R0917 nbqa pylint -rn docs/ --disable=C0200,C0103,W4902,C0116,E1101,C0103,C0115,R0902,R0913,R0903,R0914,C0412,W0621,W0246,C0114,C0413,C0411,W0212,W0611,R0801,E0401,W0702 mypy .