From 8dc8dcc3130335106d79e5a2e955b4a1cad897c2 Mon Sep 17 00:00:00 2001 From: Ali Asadi <10773383+maliasadi@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:57:24 -0400 Subject: [PATCH 1/4] Skip compile in the docs build script --- .readthedocs.yml | 15 +++------------ Makefile | 6 +++++- doc/conf.py | 3 +++ 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 7218acc5a3..8ab3a5ff56 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -16,19 +16,10 @@ build: tools: python: "3.10" apt_packages: - - cmake - - build-essential - - libopenblas-base - - libopenblas-dev - graphviz - - wget jobs: - pre_install: - - wget https://developer.download.nvidia.com/compute/cuda/12.3.2/local_installers/cuda_12.3.2_545.23.08_linux.run - - sh cuda_12.3.2_545.23.08_linux.run --silent --toolkit --toolkitpath=${READTHEDOCS_VIRTUALENV_PATH}/cuda-12.3 || cat /tmp/cuda-installer.log - - echo "setuptools~=66.0" >> ci_build_requirements.txt post_install: - - rm -rf ./build && export PATH=${READTHEDOCS_VIRTUALENV_PATH}/cuda-12.3/bin${PATH:+:${PATH}} && export LD_LIBRARY_PATH=${READTHEDOCS_VIRTUALENV_PATH}/cuda-12.3/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} && PL_BACKEND="lightning_gpu" python scripts/configure_pyproject_toml.py && CMAKE_ARGS="-DPL_DISABLE_CUDA_SAFETY=1" python -m build - - rm -rf ./build && PL_BACKEND="lightning_kokkos" python scripts/configure_pyproject_toml.py && python -m build - - rm -rf ./build && export PATH=${READTHEDOCS_VIRTUALENV_PATH}/cuda-12.3/bin${PATH:+:${PATH}} && export LD_LIBRARY_PATH=${READTHEDOCS_VIRTUALENV_PATH}/cuda-12.3/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} && PL_BACKEND="lightning_tensor" python scripts/configure_pyproject_toml.py && CMAKE_ARGS="-DPL_DISABLE_CUDA_SAFETY=1" python -m build + - PL_BACKEND="lightning_gpu" python scripts/configure_pyproject_toml.py && SKIP_COMPILATION=True python -m build + - rm -rf ./build && PL_BACKEND="lightning_kokkos" python scripts/configure_pyproject_toml.py && SKIP_COMPILATION=True python -m build + - rm -rf ./build && PL_BACKEND="lightning_tensor" python scripts/configure_pyproject_toml.py && SKIP_COMPILATION=True python -m build - python -m pip install ./dist/*.whl diff --git a/Makefile b/Makefile index 53afb80916..c9c454bb64 100644 --- a/Makefile +++ b/Makefile @@ -63,11 +63,15 @@ clean: rm -rf pennylane_lightning/*_ops* rm -rf *.egg-info -.PHONY: python +.PHONY: python python-skip-compile python: PL_BACKEND=$(PL_BACKEND) python scripts/configure_pyproject_toml.py pip install -e . --config-settings editable_mode=compat -vv +python-skip-compile: + PL_BACKEND=$(PL_BACKEND) python scripts/configure_pyproject_toml.py + SKIP_COMPILATION=True pip install -e . --config-settings editable_mode=compat -vv + .PHONY: wheel wheel: PL_BACKEND=$(PL_BACKEND) python scripts/configure_pyproject_toml.py diff --git a/doc/conf.py b/doc/conf.py index b5e4c5bc18..25890ae756 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -21,6 +21,7 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0, os.path.abspath("")) +sys.path.insert(0, os.path.abspath(".")) sys.path.insert(0, os.path.abspath("_ext")) sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath("doc")), "doc")) @@ -189,6 +190,8 @@ def __getattr__(cls, name): # This patterns also effect to html_static_path and html_extra_path exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] +nbsphinx_execute = "never" + # If true, sectionauthor and moduleauthor directives will be shown in the # output. They are ignored by default. show_authors = True From a6bfcb8803766f794effa81a515a6346cc9ff6e8 Mon Sep 17 00:00:00 2001 From: Ali Asadi <10773383+maliasadi@users.noreply.github.com> Date: Tue, 10 Sep 2024 16:07:18 -0400 Subject: [PATCH 2/4] Up --- .readthedocs.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 8ab3a5ff56..6c1e5c7673 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -5,7 +5,6 @@ sphinx: python: install: - - requirements: ci_build_requirements.txt - requirements: doc/requirements.txt - requirements: requirements-dev.txt - method: pip From 12095e154c1cd4b80204693882582f20a775eee5 Mon Sep 17 00:00:00 2001 From: Ali Asadi <10773383+maliasadi@users.noreply.github.com> Date: Wed, 11 Sep 2024 12:19:51 -0400 Subject: [PATCH 3/4] Remove dev/requirements --- .readthedocs.yml | 11 +++-------- doc/requirements.txt | 2 ++ pennylane_lightning/core/_version.py | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 6c1e5c7673..51c5b4ffc9 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -3,13 +3,6 @@ version: 2 sphinx: configuration: doc/conf.py -python: - install: - - requirements: doc/requirements.txt - - requirements: requirements-dev.txt - - method: pip - path: . - build: os: ubuntu-22.04 tools: @@ -18,7 +11,9 @@ build: - graphviz jobs: post_install: - - PL_BACKEND="lightning_gpu" python scripts/configure_pyproject_toml.py && SKIP_COMPILATION=True python -m build + - python -m pip install --exists-action=w --no-cache-dir -r doc/requirements.txt + - PL_BACKEND="lightning_qubit" python scripts/configure_pyproject_toml.py && SKIP_COMPILATION=True python -m build + - rm -rf ./build && PL_BACKEND="lightning_gpu" python scripts/configure_pyproject_toml.py && SKIP_COMPILATION=True python -m build - rm -rf ./build && PL_BACKEND="lightning_kokkos" python scripts/configure_pyproject_toml.py && SKIP_COMPILATION=True python -m build - rm -rf ./build && PL_BACKEND="lightning_tensor" python scripts/configure_pyproject_toml.py && SKIP_COMPILATION=True python -m build - python -m pip install ./dist/*.whl diff --git a/doc/requirements.txt b/doc/requirements.txt index 94b2a1df82..07f3a33b9c 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1,3 +1,5 @@ +tomlkit +build breathe docutils==0.16 exhale>=0.3.3 diff --git a/pennylane_lightning/core/_version.py b/pennylane_lightning/core/_version.py index 9b4b442069..212f402ce0 100644 --- a/pennylane_lightning/core/_version.py +++ b/pennylane_lightning/core/_version.py @@ -16,4 +16,4 @@ Version number (major.minor.patch[-label]) """ -__version__ = "0.39.0-dev14" +__version__ = "0.39.0-dev18" From cea36e4e4745cfd56f53cc6f20f4688e668423a4 Mon Sep 17 00:00:00 2001 From: ringo-but-quantum Date: Wed, 11 Sep 2024 17:40:02 +0000 Subject: [PATCH 4/4] Auto update version from '0.39.0-dev18' to '0.39.0-dev19' --- pennylane_lightning/core/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pennylane_lightning/core/_version.py b/pennylane_lightning/core/_version.py index 212f402ce0..64b949e092 100644 --- a/pennylane_lightning/core/_version.py +++ b/pennylane_lightning/core/_version.py @@ -16,4 +16,4 @@ Version number (major.minor.patch[-label]) """ -__version__ = "0.39.0-dev18" +__version__ = "0.39.0-dev19"