Skip to content

Commit b6aa4cd

Browse files
AmintorDuskovincentmrgithub-actions[bot]ringo-but-quantumrashidnhm
authored andcommitted
Syncing master with V0.36.0 branch (#715)
* Update Changelog * update release candidate version * run agains pennylane rc * update relese cadidate version * Increase tolerance for a flaky test (test_single_return_value) * Update `LightningBaseFallBack` to raise an error instead of falling back to default.qubit (#689) * Initial commit. * Update changelog * Auto update version * trigger ci * Unused import. * Auto update version * trigger ci * Fix imports. * Auto update version * Fix LightningException * make format * Auto update version from '0.36.0-dev34' to '0.36.0-dev35' * Auto update version from '0.36.0-dev35' to '0.36.0-dev36' * Auto update version from '0.36.0-dev36' to '0.36.0-dev37' * Make python -m pip install consistent. * Fix ImportError * Auto update version from '0.36.0-dev37' to '0.36.0-dev38' * --force-reinstall * Auto update version from '0.36.0-dev38' to '0.36.0-dev39' * Remove --force-reinstall * Auto update version from '0.36.0-dev39' to '0.36.0-dev40' * Auto update version from '0.36.0-dev42' to '0.36.0-dev43' * Auto update version from '0.36.0-dev43' to '0.36.0-dev44' * Spec CMAKE_CXX_COMPILER * Fix quotes. * Remove quotes * Hardcode g++-11 * use env.COMPILER * which g++ * Revert * Downgrade pip * Pin libomp. * Revert wheel_linux * Upload artifacts. * Comment upload trigger * Install pip==23 * Revert libomp * try testing outside cibuildwheel * yum install devtools * yum install devtools * Do not install python * Revert changes * Don't editable install. * Not edit install * Not edit install * Fix cov path * Explicit mcm tests path * Fix qml.QuantumFunctionError error messages. --------- Co-authored-by: Dev version update bot <github-actions[bot]@users.noreply.github.com> Co-authored-by: ringo-but-quantum <[email protected]> Co-authored-by: AmintorDusko <[email protected]> * trigger CIs * Introduce pytest-splits (#696) * Try update lightning CI paths * Auto update version * Update kokkos tests to trigger on changes to pl core * Auto update version * Split tests_linux.yml into cpp/python. * Auto update version from '0.36.0-dev36' to '0.36.0-dev38' * Split GPU tests into cpp/python. * Split MPI-GPU tests into cpp/python. * Fix LGPU triggers. * Remove python tests from LGPU-C++. * Remove upload-to-codecov-linux-cpp from LGPUMPI tests. * Rename test workflows. * Update changelog. * Change group names. * Use paths-ignore to simplify workflow paths * Auto update version from '0.36.0-dev38' to '0.36.0-dev39' * Fix test names. * you may only define one of `paths` and `paths-ignore` for a single event * Fix formatting * Auto update version from '0.36.0-dev39' to '0.36.0-dev40' * Change to paths-ignore in no-bin tests. * Auto update version from '0.36.0-dev40' to '0.36.0-dev41' * trigger ci * Change error message. * Split build/test jobs. * Revert pennylane_lightning/lightning_kokkos/lightning_kokkos.py * Fix setup.py command * Comment workflows * Comment pull_request: * Copy wheels to github.workspace /wheels * SKIP_COMPILATION=True * Revert SKIP_COMPILATION=True * Remove duplicate python actions. * Split LQ-test into 5 groups. * Update requirements-dev.txt * 2 groups * 1 group * 7 groups * Refactor LKokos tests * Auto update version from '0.36.0-dev42' to '0.36.0-dev43' * Fix cache id * Fix needs * Remove all builds * put back CMAKE_PREFIX_PATH * install fake lightning * Fix compat paths * Auto update version from '0.36.0-dev42' to '0.36.0-dev43' * Revert changes. * Update changelog * trigger ci * build_and_cache_Kokkos_linux.yml not concurrent. * Remove C++ tests from compat tests (skipped anyways). * Use ${{ github.ref }}-${{ github.event }}-${{ inputs.lightning-version }}-${{ inputs.pennylane-version }} for concurrency groups. * PL_BACKEND: ${{ matrix.pl_backend }} * Update changelog * Install wheel package. * Auto update version from '0.36.0-dev43' to '0.36.0-dev44' * Install scipy wheel in one place. * Comment job triggers. * Add LK[cpu] est durations. * trigger ci * Use sha independent keys. * trigger ci * build_and_cache_Kokkos * Change LK keys * ls -l * Install version nonce * Do not skip comp. * Trade ref for sha in key * Install after PL * ref ==> sha * Reorder * Try LQ workflows. * Use actions/setup-python * Revert triggers. * Provide correct cov path. * Revert pennylane_lightning/core/src/utils/config.h * LK uses 5 groups. * Restore wheels to main * main/wheels * Revert cache paths * Fix ls -l * fail-on-cache-miss: true * Introduce env.GITHUB_WORKSPACE * Use artifacts * Fix paths * No ls -l * Download to github.workspace * fix wheel name * WHEEL_NAME * Add blas. * Use outputs. * Send wheel name * Fix artifact name * Fix name * Use WHEEL_NAME var * artifacts kokkos * fix wheel name * Restore bins. * Clean up * Split Linux CPU python tests into 2. * Fix compat workflows. * Split format and tidy workflows. * fix lkcpu * fix concurrency group * Do not use editable installs. * Split full kokkos tests except unitary_correct * Upload LK test durations. * duration-paths * Unique test_durations * Unique test_durations * Unique test_durations * Fix path * Update python_lightning_kokkos_test_durations * Remove obsolete all and SERIAL tests. * Update changelog * Creating the `LightningTensor` device class based on the new API (#671) * empty commit (triggering CI) * Auto update version * Definition of the two front-end classes * adding the `lightning_tensor` string to the supported backends in `setup.py` * adding `__init__.py` file to directly import the `lightning_tensor` device class * re-naming file * Auto update version * Creating the first prototype of initial MPS state tensor using `quimb` * providing the `backend`, `method` parameters and making `wires` optional * Changing names and structure * Auto update version * adding method required by the new device API design * Auto update version * using the `kwargs` parameter in `LightningTensor` and `CircuitMPS` in `quimb` * taking some further inputs from the new device API * Perhaps decided the overall structure of `LIghtningTensor` * Auto update version * adding docs to methods * temporary changes so that `pylint` does not complain at this stage * running `isort` * re-running formatter after `isort` * re-running formatter after `isort` * Applying suggested formatting change from CI * adding tmp unit tests * Adding `quimb` in `requirements.txt` * runing `isort` on mps test * removing `quimb` from requirement and deleting unit tests for `lightning.tensor` * Auto update version * re-inserting unit tests with an additional `yml` file * running isort on quimb test * changing name of yml file * preventing error in import * updating yml file * inserting `quimb` package in requirements-dev * strange error with `quimb` * strange error with `quimb` * specifying scipy version * removing installation of scipy from yml file * removing the new `yml` file * testing if tests are tested * Covering all lines in tests * forgot final line for formatter * Python formatter on CI complaints * covering missing lines * formatter on CI complaints * Trying not to skip test if Cpp is enabled * skipping tests if Cpp is enabled * removing the only line not covered by tests so far * Auto update version * Applying suggestions from code review and making the `state` attribute private (new API design) * Python formatter * removing params from `QuimbMPS` * Auto update version * removing `**kwargs` from `QuimbMPS` * removing unnecessary param at this stage * covering test line * formatter... * removing param description * Making `pylint` happy * forgot new arg in test * Updating base class and `preprocess` function * Updating `LightningTensor` class with new names from more advanced PR * Auto update version * Auto update version * Triggering CI * Auto update version * Trying to remove pin from `quimb` in `requirements.dev` * Auto update version * Auto update version * Removing infos on derivatives and using config options to pass parameters to interface * Usual `pylint` failures * Trying to solve formatting errors * typo in docstring * Sunday update: improved docstrings and structure * Removing method that was supposed to be in next PR * removing old TODO comment * Removing changes from the `setup.py` file * restoring previous format to `setup.py` * Auto update version from '0.36.0-dev34' to '0.36.0-dev41' * Auto update version from '0.36.0-dev40' to '0.36.0-dev41' * Removing kwargs as suggested from code review * Addressing comments from CR * Skipping tests if CPP binary is available * Auto update version from '0.36.0-dev42' to '0.36.0-dev43' * Auto update version from '0.36.0-dev43' to '0.36.0-dev44' * Restoring name in changelog (?) * Increasing time limit for Python tests * Applying suggestions from code review --------- Co-authored-by: Dev version update bot <github-actions[bot]@users.noreply.github.com> Co-authored-by: ringo-but-quantum <[email protected]> * Increase tolerance for a flaky test (test_single_return_value) (#703) * update dev version * increase tolerance * update changelog * trigger CIs * Auto update version from '0.36.0-dev44' to '0.36.0-dev45' --------- Co-authored-by: ringo-but-quantum <[email protected]> * Auto update version from '0.36.0-dev45' to '0.36.0-dev46' * Remove LTensor stuff * Update changelog * Revert requirements-dev.txt * trigger ci * Update python_lightning_kokkos_test_durations * Restore 'all' tests in tests_lkcuda_python.yml * Fix durations paths. * Try --splitting-algorithm=least_duration * Try no -n auto lkcpu tests * One last test. --------- Co-authored-by: Rashid N H M <[email protected]> Co-authored-by: Dev version update bot <github-actions[bot]@users.noreply.github.com> Co-authored-by: ringo-but-quantum <[email protected]> Co-authored-by: Pietropaolo Frisoni <[email protected]> Co-authored-by: Amintor Dusko <[email protected]> * Update changelog (#706) * Use wire order specified on instantiation (#705) * use map wires instead of map_to_standard_wires * oops * Update .github/CHANGELOG.md * black * Trigger CIs * add test * black on tests * Update .github/CHANGELOG.md --------- Co-authored-by: AmintorDusko <[email protected]> Co-authored-by: Ali Asadi <[email protected]> * Update wire order support for probabilities (#707) * Begin expansion of probs tests * Update tests to exhaustively compute probs with wires * Update all tests in LQ Meas to use CHECK instead of REQUIRES for better signal of failures * Add Jet Permuter * Add noisy functionality * Fix permutation ordering * Update changelog * Fix wrong ordering in probs tests * Add recommendation from apache flink to purge azure dirs * Forbid out of order indices for probs with LK and LG in CPP layer * Remove MSFT tools from GH Actions * Just try to remove dotnet * List opt hostedtoolcache * Remove packages from /opt/hostedtoolcache * Fix missing test hit * Forbid and remove broken tests from LK probs ordering * Fix clang-tidy isms * Ensure libopenblas is not broken from failed apt pull with dev * Appease GH Action * Full remove GH action modifier step due to unexplained failures * Add bidreictional wire validation for LGPU CPP layer * Clang-tidy warning fix * Appease CT * Update JET license agreement * Sync version * pacify CodeFactor * make CodeFactor ignore all JET code * trigger ci * trigger ci * build wheels for test * remove Win LKokkos upload-pypi [skip-ci] * [skip ci] * trigger wheels CIs with Release event * update version * fix upload wheels artifact for release * target pennylane master * Version bump CHANGELOG * Auto update version from '' to '0.36.0-dev48' * version bump to dev0 * Auto update version from '0.37.0-dev0' to '0.36.0-dev48' * Update version * Auto update version from '0.37.0-dev0' to '0.36.0-dev48' * Update pennylane_lightning/core/_version.py --------- Co-authored-by: Vincent Michaud-Rioux <[email protected]> Co-authored-by: Dev version update bot <github-actions[bot]@users.noreply.github.com> Co-authored-by: ringo-but-quantum <[email protected]> Co-authored-by: Rashid N H M <[email protected]> Co-authored-by: Pietropaolo Frisoni <[email protected]> Co-authored-by: Ali Asadi <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Lee James O'Riordan <[email protected]> Co-authored-by: Vincent Michaud-Rioux <[email protected]>
1 parent e6248b0 commit b6aa4cd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+16166
-1866
lines changed

.github/CHANGELOG.md

+35-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
1-
# Release 0.36.0-dev
1+
# Release 0.37.0-dev
2+
3+
### New features since last release
4+
5+
### Breaking changes
6+
7+
### Improvements
8+
9+
### Documentation
10+
11+
### Bug fixes
12+
13+
### Contributors
14+
15+
This release contains contributions from (in alphabetical order):
16+
17+
---
18+
19+
# Release 0.36.0
220

321
### New features since last release
422

@@ -14,7 +32,7 @@
1432
* `lightning.kokkos` supports mid-circuit measurements.
1533
[(#672)](https://github.com/PennyLaneAI/pennylane-lightning/pull/672)
1634

17-
* Add dynamic linking to LAPACK/OpenBlas shared objects in scipy.libs for both C++ and Python layer.
35+
* Add dynamic linking to LAPACK/OpenBlas shared objects in `scipy.libs` for both C++ and Python layer.
1836
[(#653)](https://github.com/PennyLaneAI/pennylane-lightning/pull/653)
1937

2038
* `lightning.qubit` supports mid-circuit measurements.
@@ -32,7 +50,7 @@
3250
* Add analytic-mode `qml.probs` and `qml.var` support in `lightning.qubit2`.
3351
[(#627)](https://github.com/PennyLaneAI/pennylane-lightning/pull/627)
3452

35-
* Add LightningAdjointJacobian to support `lightning.qubit2`.
53+
* Add `LightningAdjointJacobian` to support `lightning.qubit2`.
3654
[(#631)](https://github.com/PennyLaneAI/pennylane-lightning/pull/631)
3755

3856
* Add `lightning.qubit2` device which uses the new device API.
@@ -47,6 +65,12 @@
4765

4866
### Breaking changes
4967

68+
* Split Lightning-Qubit and Lightning-Kokkos CPU Python tests with `pytest-split`. Remove `SERIAL` from Kokkos' `exec_model` matrix. Remove `all` from Lightning-Kokkos' `pl_backend` matrix. Move `clang-tidy` checks to `tidy.yml`. Avoid editable `pip` installations.
69+
[(#696)](https://github.com/PennyLaneAI/pennylane-lightning/pull/696)
70+
71+
* Update `lightning.gpu` and `lightning.kokkos` to raise an error instead of falling back to `default.qubit`.
72+
[(#689)](https://github.com/PennyLaneAI/pennylane-lightning/pull/689)
73+
5074
* Add `paths` directives to test workflows to avoid running tests that cannot be impacted by changes.
5175
[(#699)](https://github.com/PennyLaneAI/pennylane-lightning/pull/699)
5276
[(#695)](https://github.com/PennyLaneAI/pennylane-lightning/pull/695)
@@ -68,7 +92,7 @@
6892

6993
### Improvements
7094

71-
* Add tests for Windows Wheels, fix ill-defined caching, and set the proper backend for LKokkos wheels.
95+
* Add tests for Windows Wheels, fix ill-defined caching, and set the proper backend for `lightning.kokkos` wheels.
7296
[(#693)](https://github.com/PennyLaneAI/pennylane-lightning/pull/693)
7397

7498
* Replace string comparisons by `isinstance` checks where possible.
@@ -108,17 +132,20 @@
108132

109133
### Bug fixes
110134

135+
* Fix wire order permutations when using `qml.probs` with out-of-order wires.
136+
[(#707)](https://github.com/PennyLaneAI/pennylane-lightning/pull/707)
137+
111138
* Lightning Qubit once again respects the wire order specified on device instantiation.
112139
[(#705)](https://github.com/PennyLaneAI/pennylane-lightning/pull/705)
113140

114141
* `dynamic_one_shot` was refactored to use `SampleMP` measurements as a way to return the mid-circuit measurement samples. `LightningQubit`'s `simulate` is modified accordingly.
115-
[(#694)](https://github.com/PennyLaneAI/pennylane/pull/694)
142+
[(#694)](https://github.com/PennyLaneAI/pennylane-lightning/pull/694)
116143

117144
* `LightningQubit` correctly decomposes state prep operations when used in the middle of a circuit.
118-
[(#687)](https://github.com/PennyLaneAI/pennylane/pull/687)
145+
[(#687)](https://github.com/PennyLaneAI/pennylane-lightning/pull/687)
119146

120147
* `LightningQubit` correctly decomposes `qml.QFT` and `qml.GroverOperator` if `len(wires)` is greater than 9 and 12 respectively.
121-
[(#687)](https://github.com/PennyLaneAI/pennylane/pull/687)
148+
[(#687)](https://github.com/PennyLaneAI/pennylane-lightning/pull/687)
122149

123150
* Specify `isort` `--py` (Python version) and `-l` (max line length) to stabilize `isort` across Python versions and environments.
124151
[(#647)](https://github.com/PennyLaneAI/pennylane-lightning/pull/647)
@@ -138,14 +165,11 @@
138165
* Update the version of `codecov-action` to v4 and fix the CodeCov issue with the PL-Lightning check-compatibility actions.
139166
[(#682)](https://github.com/PennyLaneAI/pennylane-lightning/pull/682)
140167

141-
* Increase tolerance for a flaky test.
142-
[(#703)](https://github.com/PennyLaneAI/pennylane-lightning/pull/703)
143-
144168
### Contributors
145169

146170
This release contains contributions from (in alphabetical order):
147171

148-
Ali Asadi, Amintor Dusko, Pietropaolo Frisoni, Christina Lee, Vincent Michaud-Rioux, Lee James O'Riordan, Mudit Pandey, Shuli Shu
172+
Ali Asadi, Amintor Dusko, Christina Lee, Vincent Michaud-Rioux, Lee James O'Riordan, Mudit Pandey, Shuli Shu
149173

150174
---
151175

.github/workflows/build_and_cache_Kokkos_linux.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
steps:
3434
- name: Kokkos execution strategy
3535
id: exec_model
36-
run: echo "exec_model=[\"SERIAL\", \"OPENMP\"]" >> $GITHUB_OUTPUT
36+
run: echo "exec_model=[\"OPENMP\"]" >> $GITHUB_OUTPUT
3737

3838
- name: Kokkos version
3939
id: kokkos_version

.github/workflows/compat-check-latest-latest.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,16 @@ jobs:
2020
lightning-version: latest
2121
pennylane-version: latest
2222
secrets: inherit
23-
tests_linux_python:
24-
name: Lightning Compatibility test (tests_linux_python) - latest/latest
25-
uses: ./.github/workflows/tests_linux_python.yml
23+
tests_lqcpu_python:
24+
name: Lightning Compatibility test (tests_lqcpu_python) - latest/latest
25+
uses: ./.github/workflows/tests_lqcpu_python.yml
26+
with:
27+
lightning-version: latest
28+
pennylane-version: latest
29+
secrets: inherit
30+
tests_lkcpu_python:
31+
name: Lightning Compatibility test (tests_lkcpu_python) - latest/latest
32+
uses: ./.github/workflows/tests_lkcpu_python.yml
2633
with:
2734
lightning-version: latest
2835
pennylane-version: latest

.github/workflows/compat-check-latest-stable.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,16 @@ jobs:
2020
lightning-version: latest
2121
pennylane-version: stable
2222
secrets: inherit
23-
tests_linux_python:
24-
name: Lightning Compatibility test (tests_linux_python) - latest/stable
25-
uses: ./.github/workflows/tests_linux_python.yml
23+
tests_lqcpu_python:
24+
name: Lightning Compatibility test (tests_lqcpu_python) - latest/stable
25+
uses: ./.github/workflows/tests_lqcpu_python.yml
26+
with:
27+
lightning-version: latest
28+
pennylane-version: stable
29+
secrets: inherit
30+
tests_lkcpu_python:
31+
name: Lightning Compatibility test (tests_lkcpu_python) - latest/stable
32+
uses: ./.github/workflows/tests_lkcpu_python.yml
2633
with:
2734
lightning-version: latest
2835
pennylane-version: stable

.github/workflows/compat-check-release-release.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,16 @@ jobs:
2020
lightning-version: release
2121
pennylane-version: release
2222
secrets: inherit
23-
tests_linux_python:
24-
name: Lightning Compatibility test (tests_linux_python) - release/release
25-
uses: ./.github/workflows/tests_linux_python.yml
23+
tests_lqcpu_python:
24+
name: Lightning Compatibility test (tests_lqcpu_python) - release/release
25+
uses: ./.github/workflows/tests_lqcpu_python.yml
26+
with:
27+
lightning-version: release
28+
pennylane-version: release
29+
secrets: inherit
30+
tests_lkcpu_python:
31+
name: Lightning Compatibility test (tests_lkcpu_python) - release/release
32+
uses: ./.github/workflows/tests_lkcpu_python.yml
2633
with:
2734
lightning-version: release
2835
pennylane-version: release

.github/workflows/compat-check-stable-latest.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,16 @@ jobs:
2020
lightning-version: stable
2121
pennylane-version: latest
2222
secrets: inherit
23-
tests_linux_python:
24-
name: Lightning Compatibility test (tests_linux_python) - stable/latest
25-
uses: ./.github/workflows/tests_linux_python.yml
23+
tests_lqcpu_python:
24+
name: Lightning Compatibility test (tests_lqcpu_python) - stable/latest
25+
uses: ./.github/workflows/tests_lqcpu_python.yml
26+
with:
27+
lightning-version: stable
28+
pennylane-version: latest
29+
secrets: inherit
30+
tests_lkcpu_python:
31+
name: Lightning Compatibility test (tests_lkcpu_python) - stable/latest
32+
uses: ./.github/workflows/tests_lkcpu_python.yml
2633
with:
2734
lightning-version: stable
2835
pennylane-version: latest

.github/workflows/compat-check-stable-stable.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,16 @@ jobs:
2020
lightning-version: stable
2121
pennylane-version: stable
2222
secrets: inherit
23-
tests_linux_python:
24-
name: Lightning Compatibility test (tests_linux_python) - stable/stable
25-
uses: ./.github/workflows/tests_linux_python.yml
23+
tests_lqcpu_python:
24+
name: Lightning Compatibility test (tests_lqcpu_python) - stable/stable
25+
uses: ./.github/workflows/tests_lqcpu_python.yml
26+
with:
27+
lightning-version: stable
28+
pennylane-version: stable
29+
secrets: inherit
30+
tests_lkcpu_python:
31+
name: Lightning Compatibility test (tests_lkcpu_python) - stable/stable
32+
uses: ./.github/workflows/tests_lkcpu_python.yml
2633
with:
2734
lightning-version: stable
2835
pennylane-version: stable

.github/workflows/dev_version_script.py

+13-8
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,18 @@ def update_prerelease_version(repo_root_path: Path, version: Version):
107107
if not master_version.prerelease or master_version.prerelease == DEV_PRERELEASE_TAG_PREFIX:
108108
next_prerelease_version = DEV_PRERELEASE_TAG_START
109109
else:
110-
# Generate the next prerelease version (eg: dev1 -> dev2). Sourcing from master version.
111-
next_prerelease_version = master_version.next_version("prerelease").prerelease
112-
new_version = master_version.replace(prerelease=next_prerelease_version)
113-
if pr_version != new_version:
114-
print(f"Updating PR package version from -> '{pr_version}', to -> {new_version}")
115-
update_prerelease_version(args.pr, new_version)
116-
else:
117-
print(f"PR is on the expected version '{new_version}' ... Nothing to do!")
110+
# If master branch does not have a prerelease (for any reason) OR does not have an ending number
111+
# Then default to the starting tag
112+
if not master_version.prerelease or master_version.prerelease == DEV_PRERELEASE_TAG_PREFIX:
113+
next_prerelease_version = DEV_PRERELEASE_TAG_START
114+
else:
115+
# Generate the next prerelease version (eg: dev1 -> dev2). Sourcing from master version.
116+
next_prerelease_version = master_version.next_version("prerelease").prerelease
117+
new_version = master_version.replace(prerelease=next_prerelease_version)
118+
if pr_version != new_version:
119+
print(f"Updating PR package version from -> '{pr_version}', to -> {new_version}")
120+
update_prerelease_version(args.pr, new_version)
121+
else:
122+
print(f"PR is on the expected version '{new_version}' ... Nothing to do!")
118123
else:
119124
print("PR is not a dev prerelease ... Nothing to do!")

.github/workflows/format.yml

+1-36
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ concurrency:
1010
cancel-in-progress: true
1111

1212
jobs:
13-
black:
13+
format-python:
1414
name: Format (Python)
1515
runs-on: ubuntu-22.04
1616
steps:
@@ -42,38 +42,3 @@ jobs:
4242

4343
- name: Run formatter
4444
run: PATH=$PATH:/home/ubuntu/.local/bin/:$(dirname $(which python3))/ ./bin/format --check ./pennylane_lightning/core/src
45-
46-
tidy-cpp:
47-
strategy:
48-
matrix:
49-
os: [ubuntu-22.04]
50-
pl_backend: ["lightning_qubit"]
51-
52-
name: Tidy (C++)
53-
runs-on: ${{ matrix.os }}
54-
55-
steps:
56-
- name: Checkout PennyLane-Lightning
57-
uses: actions/checkout@v4
58-
59-
- name: Set up Python
60-
uses: actions/setup-python@v5
61-
with:
62-
python-version: '3.11'
63-
64-
- name: Install dependencies
65-
run: sudo apt update && sudo apt -y install cmake gcc-11 g++-11 ninja-build libomp-14-dev && python -m pip install -r requirements-dev.txt
66-
env:
67-
DEBIAN_FRONTEND: noninteractive
68-
69-
- name: Run clang-tidy compilation
70-
run: |
71-
cmake -BBuild -G Ninja . \
72-
-DENABLE_CLANG_TIDY=ON \
73-
-DCLANG_TIDY_BINARY=$(dirname $(which python))/clang-tidy \
74-
-DBUILD_TESTS=ON \
75-
-DENABLE_WARNINGS=ON \
76-
-DPL_BACKEND=${{ matrix.pl_backend }} \
77-
-DCMAKE_CXX_COMPILER="$(which g++-11)" \
78-
-DCMAKE_C_COMPILER="$(which gcc-11)"
79-
cmake --build ./Build

0 commit comments

Comments
 (0)