Skip to content

Commit

Permalink
Fix PennyLane deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Oct 31, 2024
1 parent a3c938a commit 5a0fae9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion catalyst
Submodule catalyst updated 73 files
+1 −1 .github/workflows/build-wheel-linux-x86_64.yaml
+1 −1 .github/workflows/build-wheel-macos-arm64.yaml
+1 −1 .github/workflows/build-wheel-macos-x86_64.yaml
+5 −5 .github/workflows/check-pl-compat.yaml
+1 −1 .github/workflows/rc_sync.yaml
+1 −1 .github/workflows/scripts/linux_arm64/rh8/build_catalyst.sh
+3 −0 .gitignore
+2 −2 Makefile
+1 −1 doc/dev/autograph.rst
+11 −2 doc/dev/devices.rst
+2 −2 doc/dev/quick_start.rst
+2 −0 doc/dev/release_notes.rst
+7 −1 doc/dev/sharp_bits.rst
+508 −0 doc/releases/changelog-0.9.0.md
+10 −355 doc/releases/changelog-dev.md
+2 −0 frontend/catalyst/__init__.py
+1 −1 frontend/catalyst/_version.py
+92 −1 frontend/catalyst/api_extensions/control_flow.py
+14 −14 frontend/catalyst/api_extensions/error_mitigation.py
+6 −10 frontend/catalyst/api_extensions/function_maps.py
+38 −8 frontend/catalyst/compiler.py
+1 −3 frontend/catalyst/debug/compiler_functions.py
+1 −1 frontend/catalyst/device/verification.py
+2 −3 frontend/catalyst/jax_primitives.py
+23 −9 frontend/catalyst/jit.py
+58 −50 frontend/catalyst/passes.py
+34 −2 frontend/catalyst/tracing/type_signatures.py
+6 −6 frontend/test/conftest.py
+95 −0 frontend/test/lit/test_if_else.py
+1 −2 frontend/test/lit/test_mitigation.py
+3 −3 frontend/test/lit/test_peephole_optimizations.py
+11 −12 frontend/test/pytest/test_compiler.py
+68 −3 frontend/test/pytest/test_conditionals.py
+1 −5 frontend/test/pytest/test_debug.py
+1 −1 frontend/test/pytest/test_global_phase.py
+40 −0 frontend/test/pytest/test_jax_dynamic_api.py
+2 −2 frontend/test/pytest/test_measurement_transforms.py
+1 −1 frontend/test/pytest/test_mid_circuit_measurement.py
+10 −4 frontend/test/pytest/test_peephole_optimizations.py
+8 −5 frontend/test/pytest/test_seeded_qjit.py
+76 −1 frontend/test/pytest/test_static_arguments.py
+1 −1 mlir/Makefile
+3 −1 mlir/README.rst
+1 −0 mlir/include/Catalyst/Transforms/Passes.td
+30 −18 mlir/include/Driver/CompilerDriver.h
+74 −0 mlir/include/Driver/Pipelines.h
+3 −0 mlir/include/Quantum/IR/QuantumOps.td
+252 −0 mlir/lib/Catalyst/Transforms/ScatterPatterns.cpp
+1 −0 mlir/lib/Catalyst/Transforms/scatter_lowering.cpp
+3 −0 mlir/lib/Driver/CMakeLists.txt
+426 −137 mlir/lib/Driver/CompilerDriver.cpp
+203 −0 mlir/lib/Driver/Pipelines.cpp
+1 −1 mlir/lib/Gradient/Transforms/GradMethods/PS_QuantumGradient.cpp
+0 −2 mlir/lib/Gradient/Transforms/GradMethods/ParameterShift.hpp
+46 −0 mlir/lib/Quantum/IR/QuantumOps.cpp
+0 −1 mlir/lib/Quantum/Transforms/MergeRotationsPatterns.cpp
+8 −0 mlir/lib/Quantum/Transforms/merge_rotation.cpp
+10 −28 mlir/python/PyCompilerDriver.cpp
+2 −0 mlir/test/CMakeLists.txt
+185 −0 mlir/test/Catalyst/ScatterTest.mlir
+39 −0 mlir/test/Quantum/CanonicalizationTest.mlir
+39 −0 mlir/test/Quantum/MergeRotationsTest.mlir
+28 −28 mlir/test/Quantum/SplitMultipleTapesTest.mlir
+23 −0 mlir/test/cli/DumpAfterFailure.mlir
+38 −0 mlir/test/cli/DumpBeforeAfterPass.mlir
+36 −0 mlir/test/cli/DumpPipeline.mlir
+26 −0 mlir/test/cli/DumpTiming.mlir
+26 −0 mlir/test/cli/WrongInput.mlir
+1 −0 mlir/tools/CMakeLists.txt
+46 −0 mlir/tools/catalyst-cli/CMakeLists.txt
+17 −0 mlir/tools/catalyst-cli/catalyst-cli.cpp
+0 −1 runtime/Makefile
+3 −3 runtime/README.rst
2 changes: 1 addition & 1 deletion pennylane_qrack/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
Version number (major.minor.patch[-label])
"""

__version__ = "0.10.3"
__version__ = "0.10.4"
3 changes: 2 additions & 1 deletion pennylane_qrack/qrack_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@

import numpy as np

from pennylane import QubitDevice, DeviceError, QuantumFunctionError
from pennylane import DeviceError, QuantumFunctionError
from pennylane.devices import QubitDevice
from pennylane.ops import (
QubitStateVector,
BasisState,
Expand Down

0 comments on commit 5a0fae9

Please sign in to comment.