Skip to content

Add ROWCOL CNOT routing algorithm #7394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 36 commits into
base: phase-polynomials
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
9a868db
Changing sphinx-action to version 3.9 (#7348)
runora95 Apr 29, 2025
7d49a5a
Fix repr for `Sum` and `Prod` (#7346)
albi3ro Apr 29, 2025
21b0256
Allow overwriting shots on snapshots (#7326)
albi3ro Apr 29, 2025
7d44a98
Fix snapshots with defer measurements (#7335)
albi3ro Apr 29, 2025
797603f
BugFix: fix special case discontinuity in two-qubit decomposition (#7…
astralcai Apr 29, 2025
a2ee4b3
[Bugfix] Update handling of observables in `process_counts` (#7342)
lillian542 Apr 29, 2025
cf180c0
[no ci] bump nightly version
ringo-but-quantum Apr 30, 2025
c1d096b
Default `Operator.num_wires = None` to indicate that the operator can…
albi3ro Apr 30, 2025
b4e77d7
Deprecate `WiresEnum`, `AllWires`, and `AnyWires` (#7313)
albi3ro Apr 30, 2025
3229b05
[BugFix] Fix powers of ISWAP and SISWAP (#7361)
astralcai Apr 30, 2025
48661be
[no ci] bump nightly version
ringo-but-quantum May 1, 2025
c62966c
deprecate the operation.py boolean fns (#7319)
albi3ro May 1, 2025
62d86f0
Capture parametric MCMs in plxpr (#7219)
lillian542 May 1, 2025
8278e67
Add resource tracking to null.qubit (#7226)
jzaia18 May 1, 2025
dec9b70
Fix the capture of QSVT (#7360)
albi3ro May 1, 2025
2d5299c
Changing Sphinx minimum version (#7212)
runora95 May 1, 2025
1b023b5
[FTQC] Change return type of arbitrary-basis measurement primitive fr…
joeycarter May 1, 2025
6a00c7e
[no ci] bump nightly version
ringo-but-quantum May 2, 2025
08d074f
Deprecate `Observable` (#7316)
albi3ro May 2, 2025
288a8e3
spell check: `tranform` -> `transform` (#7374)
JerryChen97 May 3, 2025
161e127
[no ci] bump nightly version
ringo-but-quantum May 5, 2025
da60078
Manual cherry picking sync from latest rc to master (#7381)
PietropaoloFrisoni May 5, 2025
887b3e4
Update stable dependency files (#7380)
github-actions[bot] May 5, 2025
f2d2d23
Pass track_resources attribute through to Catalyst runtime (#7372)
jzaia18 May 5, 2025
50fc0bc
[Python Compiler] Creating the quantum dialect (#7357)
PietropaoloFrisoni May 5, 2025
353fb36
Update release to adhere to PyPI BDF requirements (#7382)
mlxd May 5, 2025
7a14488
[no ci] bump nightly version
ringo-but-quantum May 6, 2025
a9cd175
[no ci] bump nightly version
ringo-but-quantum May 7, 2025
846da83
add
dwierichs May 7, 2025
c322edc
Allow returning diagonalized parametric MCMs (#7387)
lillian542 May 7, 2025
9a96864
[BUG] `default.mixed` np to math (#7384)
JerryChen97 May 7, 2025
e21660f
Reduce memory and compute usage in uniformly controlled rotations (`M…
dwierichs May 8, 2025
907fa29
[no ci] bump nightly version
ringo-but-quantum May 8, 2025
2d0e41d
merge
dwierichs May 8, 2025
56ea0a2
lint
dwierichs May 8, 2025
6754450
lint
dwierichs May 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/stable/all_interfaces.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ black==25.1.0
cachetools==5.5.2
certifi==2025.4.26
cfgv==3.4.0
charset-normalizer==3.4.1
charset-normalizer==3.4.2
clarabel==0.10.0
click==8.1.8
contourpy==1.3.2
Expand Down Expand Up @@ -38,7 +38,7 @@ isort==5.13.2
jax==0.4.28
jaxlib==0.4.28
Jinja2==3.1.6
joblib==1.4.2
joblib==1.5.0
keras==3.9.2
kiwisolver==1.4.8
lazy-object-proxy==1.11.0
Expand Down Expand Up @@ -74,7 +74,7 @@ osqp==1.0.3
packaging==25.0
pandas==2.2.3
pathspec==0.12.1
PennyLane_Lightning==0.42.0.dev7
PennyLane_Lightning==0.42.0.dev13
pillow==11.2.1
platformdirs==4.3.7
pluggy==1.5.0
Expand Down Expand Up @@ -112,7 +112,7 @@ tensorboard==2.18.0
tensorboard-data-server==0.7.2
tensorflow==2.18.1
tensorflow-io-gcs-filesystem==0.37.1
termcolor==3.0.1
termcolor==3.1.0
tf_keras==2.18.0
toml==0.10.2
tomli==2.2.1
Expand Down
8 changes: 4 additions & 4 deletions .github/stable/core.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ black==25.1.0
cachetools==5.5.2
certifi==2025.4.26
cfgv==3.4.0
charset-normalizer==3.4.1
charset-normalizer==3.4.2
clarabel==0.10.0
click==8.1.8
contourpy==1.3.2
Expand All @@ -30,7 +30,7 @@ idna==3.10
iniconfig==2.1.0
isort==5.13.2
Jinja2==3.1.6
joblib==1.4.2
joblib==1.5.0
kiwisolver==1.4.8
lazy-object-proxy==1.11.0
markdown-it-py==3.0.0
Expand All @@ -46,7 +46,7 @@ osqp==1.0.3
packaging==25.0
pandas==2.2.3
pathspec==0.12.1
PennyLane_Lightning==0.42.0.dev7
PennyLane_Lightning==0.42.0.dev13
pillow==11.2.1
platformdirs==4.3.7
pluggy==1.5.0
Expand Down Expand Up @@ -78,7 +78,7 @@ scs==3.2.7.post2
six==1.17.0
smmap==5.0.2
tach==0.28.5
termcolor==3.0.1
termcolor==3.1.0
toml==0.10.2
tomli==2.2.1
tomli_w==1.2.0
Expand Down
30 changes: 15 additions & 15 deletions .github/stable/external.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cachetools==5.5.2
certifi==2025.4.26
cffi==1.17.1
cfgv==3.4.0
charset-normalizer==3.4.1
charset-normalizer==3.4.2
chex==0.1.89
cirq-core==1.4.0
clarabel==0.10.0
Expand All @@ -32,7 +32,7 @@ comm==0.2.2
contourpy==1.3.2
cotengra==0.7.2
coverage==7.8.0
cryptography==44.0.2
cryptography==44.0.3
cvxopt==1.3.2
cvxpy==1.6.5
cycler==0.12.1
Expand All @@ -57,7 +57,7 @@ flatbuffers==25.2.10
fonttools==4.57.0
fqdn==1.5.1
fxpmath==0.4.9
galois==0.4.5
galois==0.4.6
gast==0.6.0
gitdb==4.0.12
GitPython==3.1.44
Expand All @@ -69,7 +69,7 @@ h5py==3.13.0
httpcore==1.0.9
httpx==0.28.1
ibm-cloud-sdk-core==3.23.0
ibm-platform-services==0.63.0
ibm-platform-services==0.64.0
identify==2.6.10
idna==3.10
importlib_metadata==8.7.0
Expand All @@ -84,7 +84,7 @@ jax==0.4.28
jaxlib==0.4.28
jedi==0.19.2
Jinja2==3.1.6
joblib==1.4.2
joblib==1.5.0
json5==0.12.0
jsonpointer==3.0.0
jsonschema==4.23.0
Expand Down Expand Up @@ -118,7 +118,7 @@ ml_dtypes==0.5.1
mpmath==1.3.0
mypy_extensions==1.1.0
namex==0.0.9
narwhals==1.36.0
narwhals==1.37.1
nbclient==0.10.2
nbconvert==7.16.6
nbformat==5.10.4
Expand All @@ -140,10 +140,10 @@ pandocfilters==1.5.1
parso==0.8.4
pathspec==0.12.1
pbr==6.1.1
PennyLane-Catalyst==0.12.0.dev15
PennyLane-qiskit @ git+https://github.com/PennyLaneAI/pennylane-qiskit.git@f6f99a459cd4b329f993ed2008b02e91bcbb520e
PennyLane_Lightning==0.42.0.dev0
PennyLane_Lightning_Kokkos==0.42.0.dev0
PennyLane-Catalyst==0.12.0.dev20
PennyLane-qiskit @ git+https://github.com/PennyLaneAI/pennylane-qiskit.git@cbbf8120d64cfc598f8481d84ac99c6383dce641
PennyLane_Lightning==0.42.0.dev11
PennyLane_Lightning_Kokkos==0.42.0.dev11
pexpect==4.9.0
pillow==11.2.1
platformdirs==4.3.7
Expand All @@ -161,8 +161,8 @@ pure_eval==0.2.3
py==1.11.0
py-cpuinfo==9.0.0
pycparser==2.22
pydantic==2.11.3
pydantic_core==2.33.1
pydantic==2.11.4
pydantic_core==2.33.2
pydot==3.0.4
Pygments==2.19.1
PyJWT==2.10.1
Expand All @@ -189,8 +189,8 @@ qiskit-aer==0.16.0
qiskit-ibm-provider==0.11.0
qiskit-ibm-runtime==0.29.0
qref==0.9.0
qsharp==1.15.0
qsharp-widgets==1.15.0
qsharp==1.16.0
qsharp-widgets==1.16.0
qualtran==0.6.1
quimb==1.10.0
referencing==0.36.2
Expand Down Expand Up @@ -222,7 +222,7 @@ tensorboard==2.18.0
tensorboard-data-server==0.7.2
tensorflow==2.18.1
tensorflow-io-gcs-filesystem==0.37.1
termcolor==3.0.1
termcolor==3.1.0
terminado==0.18.1
tf_keras==2.18.0
tinycss2==1.4.0
Expand Down
8 changes: 4 additions & 4 deletions .github/stable/jax.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ black==25.1.0
cachetools==5.5.2
certifi==2025.4.26
cfgv==3.4.0
charset-normalizer==3.4.1
charset-normalizer==3.4.2
clarabel==0.10.0
click==8.1.8
contourpy==1.3.2
Expand All @@ -32,7 +32,7 @@ isort==5.13.2
jax==0.4.28
jaxlib==0.4.28
Jinja2==3.1.6
joblib==1.4.2
joblib==1.5.0
kiwisolver==1.4.8
lazy-object-proxy==1.11.0
markdown-it-py==3.0.0
Expand All @@ -50,7 +50,7 @@ osqp==1.0.3
packaging==25.0
pandas==2.2.3
pathspec==0.12.1
PennyLane_Lightning==0.42.0.dev7
PennyLane_Lightning==0.42.0.dev13
pillow==11.2.1
platformdirs==4.3.7
pluggy==1.5.0
Expand Down Expand Up @@ -82,7 +82,7 @@ scs==3.2.7.post2
six==1.17.0
smmap==5.0.2
tach==0.28.5
termcolor==3.0.1
termcolor==3.1.0
toml==0.10.2
tomli==2.2.1
tomli_w==1.2.0
Expand Down
8 changes: 4 additions & 4 deletions .github/stable/tf.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ black==25.1.0
cachetools==5.5.2
certifi==2025.4.26
cfgv==3.4.0
charset-normalizer==3.4.1
charset-normalizer==3.4.2
clarabel==0.10.0
click==8.1.8
contourpy==1.3.2
Expand All @@ -35,7 +35,7 @@ idna==3.10
iniconfig==2.1.0
isort==5.13.2
Jinja2==3.1.6
joblib==1.4.2
joblib==1.5.0
keras==3.9.2
kiwisolver==1.4.8
lazy-object-proxy==1.11.0
Expand All @@ -58,7 +58,7 @@ osqp==1.0.3
packaging==25.0
pandas==2.2.3
pathspec==0.12.1
PennyLane_Lightning==0.42.0.dev7
PennyLane_Lightning==0.42.0.dev13
pillow==11.2.1
platformdirs==4.3.7
pluggy==1.5.0
Expand Down Expand Up @@ -95,7 +95,7 @@ tensorboard==2.18.0
tensorboard-data-server==0.7.2
tensorflow==2.18.1
tensorflow-io-gcs-filesystem==0.37.1
termcolor==3.0.1
termcolor==3.1.0
tf_keras==2.18.0
toml==0.10.2
tomli==2.2.1
Expand Down
8 changes: 4 additions & 4 deletions .github/stable/torch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ black==25.1.0
cachetools==5.5.2
certifi==2025.4.26
cfgv==3.4.0
charset-normalizer==3.4.1
charset-normalizer==3.4.2
clarabel==0.10.0
click==8.1.8
contourpy==1.3.2
Expand All @@ -31,7 +31,7 @@ idna==3.10
iniconfig==2.1.0
isort==5.13.2
Jinja2==3.1.6
joblib==1.4.2
joblib==1.5.0
kiwisolver==1.4.8
lazy-object-proxy==1.11.0
markdown-it-py==3.0.0
Expand Down Expand Up @@ -60,7 +60,7 @@ osqp==1.0.3
packaging==25.0
pandas==2.2.3
pathspec==0.12.1
PennyLane_Lightning==0.42.0.dev7
PennyLane_Lightning==0.42.0.dev13
pillow==11.2.1
platformdirs==4.3.7
pluggy==1.5.0
Expand Down Expand Up @@ -93,7 +93,7 @@ six==1.17.0
smmap==5.0.2
sympy==1.13.1
tach==0.28.5
termcolor==3.0.1
termcolor==3.1.0
toml==0.10.2
tomli==2.2.1
tomli_w==1.2.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/interface-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ jobs:
pytest_additional_args: ${{ needs.warnings-as-errors-setup.outputs.pytest_warning_args }}
pytest_xml_file_path: '${{ inputs.job_name_prefix }}external-libraries-tests (${{ matrix.python-version }})${{ inputs.job_name_suffix }}.xml'
additional_pip_packages: |
pyzx matplotlib stim quimb mitiq ply optax scipy-openblas32>=0.3.26 qualtran
pyzx matplotlib stim quimb mitiq ply optax scipy-openblas32>=0.3.26 qualtran xdsl
git+https://github.com/PennyLaneAI/pennylane-qiskit.git@master
${{ needs.default-dependency-versions.outputs.jax-version }}
${{ needs.default-dependency-versions.outputs.tensorflow-version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests-labs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ jobs:
python_version: '3.10'
pytest_test_directory: pennylane/labs/tests
additional_pip_packages: |
geometric mpi4py h5py basis_set_exchange pyscf
geometric mpi4py h5py basis-set-exchange pyscf optax
geometric mpi4py h5py basis_set_exchange pyscf galois
geometric mpi4py h5py basis-set-exchange pyscf galois optax
${{ needs.default-dependency-versions.outputs.jax-version }}
5 changes: 2 additions & 3 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ jobs:

- name: Build PennyLane wheel
run: |
python -m pip install --upgrade pip wheel
pip install -r requirements-ci.txt --upgrade
python setup.py bdist_wheel
python -m pip install build
python -m build --wheel --outdir dist

- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
1 change: 1 addition & 0 deletions doc/_templates/autosummary_core/class.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
.. currentmodule:: {{ module }}

.. autoclass:: {{ objname }}
:no-index:
:show-inheritance:

{% if '__init__' in methods %}
Expand Down
2 changes: 2 additions & 0 deletions doc/code/qml_operation.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
qml.operation
=============

.. currentmodule:: pennylane.operation

.. automodule:: pennylane.operation
2 changes: 2 additions & 0 deletions doc/code/qml_ops_op_math.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
qml.ops.op_math
===============

.. currentmodule:: pennylane.ops.op_math

.. automodule:: pennylane.ops.op_math
2 changes: 2 additions & 0 deletions doc/code/qml_pauli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ qml.pauli
Overview
--------

.. currentmodule:: pennylane.pauli

This module defines functions and classes for generating and manipulating
elements of the Pauli group. It also contains a subpackage :mod:`pauli/grouping`
for Pauli-word partitioning functionality used in measurement optimization.
Expand Down
2 changes: 2 additions & 0 deletions doc/code/qml_pulse.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
qml.pulse
=========

.. currentmodule:: pennylane.pulse

.. automodule:: pennylane.pulse
2 changes: 2 additions & 0 deletions doc/code/qml_qaoa.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ qml.qaoa
Overview
--------

.. currentmodule:: pennylane.qaoa

This module provides a collection of methods that help in the construction of
QAOA workflows.

Expand Down
2 changes: 2 additions & 0 deletions doc/code/qml_qchem.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ qml.qchem
Overview
--------

.. currentmodule:: pennylane.qchem

The quantum chemistry module provides the functionality to perform Hartree-Fock calculations
and construct observables such as molecular Hamiltonians as well as dipole moment, spin and particle
number observables. It also includes functionalities to convert to and from Openfermion's
Expand Down
1 change: 1 addition & 0 deletions doc/code/qml_resource.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
qml.resource
=============

.. currentmodule:: pennylane.resource
.. automodule:: pennylane.resource
1 change: 1 addition & 0 deletions doc/code/qml_shadows.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
qml.shadows
=============

.. currentmodule:: pennylane.shadows
.. automodule:: pennylane.shadows
2 changes: 2 additions & 0 deletions doc/code/qml_tape.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
qml.tape
========

.. currentmodule:: pennylane.tape

Quantum tapes are a datastructure that can represent quantum circuits and measurement statistics in PennyLane. They are queuing contexts that can record and process quantum operations and measurements.

In addition to being created internally by QNodes, quantum tapes can also be created,
Expand Down
Loading