Skip to content

Commit a792e86

Browse files
chore: update is_hermitian to is_verified_hermitian after PL deprecation (#2157)
PL deprecated this here: [github.com/PennyLaneAI/pennylane/pull/8494](PennyLaneAI/pennylane#8494) [sc-96463] --------- Co-authored-by: Yushao Chen (Jerry) <[email protected]>
1 parent 9037010 commit a792e86

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

.dep-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ enzyme=v0.0.186
1010

1111
# For a custom PL version, update the package version here and at
1212
# 'doc/requirements.txt'
13-
pennylane=0.43.0
13+
pennylane=0.44.0.dev17
1414

1515
# For a custom LQ/LK version, update the package version here and at
1616
# 'doc/requirements.txt'

doc/releases/changelog-dev.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
[(#2128)](https://github.com/PennyLaneAI/catalyst/pull/2128)
2020
[(#2133)](https://github.com/PennyLaneAI/catalyst/pull/2133)
2121

22-
* <h3>Internal changes ⚙️</h3>
22+
<h3>Internal changes ⚙️</h3>
2323

2424
* Refactor Catalyst pass registering so that it's no longer necessary to manually add new
2525
passes at `registerAllCatalystPasses`.

doc/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ lxml_html_clean
3333
--extra-index-url https://test.pypi.org/simple/
3434
pennylane-lightning-kokkos==0.43.0
3535
pennylane-lightning==0.43.0
36-
pennylane==0.43.0
36+
pennylane==0.44.0.dev17

frontend/test/pytest/test_adjoint.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -865,16 +865,16 @@ def test_queue_category_None(self):
865865
assert op._queue_category is None # pylint: disable=protected-access
866866

867867
@pytest.mark.parametrize("value", (True, False))
868-
def test_is_hermitian(self, value):
869-
"""Test `is_hermitian` property mirrors that of the base."""
868+
def test_is_verified_hermitian(self, value):
869+
"""Test `is_verified_hermitian` property mirrors that of the base."""
870870

871871
# pylint: disable=too-few-public-methods
872872
class DummyOp(qml.operation.Operator):
873873
num_wires = 1
874-
is_hermitian = value
874+
is_verified_hermitian = value
875875

876876
op = adjoint(DummyOp(0))
877-
assert op.is_hermitian == value
877+
assert op.is_verified_hermitian == value
878878

879879
def test_batching_properties(self):
880880
"""Test the batching properties and methods."""

frontend/test/pytest/test_quantum_control.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -800,17 +800,17 @@ class DummyOp(Operator):
800800
assert op._queue_category == value
801801

802802
@pytest.mark.parametrize("value", (True, False))
803-
def test_is_hermitian(self, value):
804-
"""Test that `catalyst.ctrl` defers `is_hermitian` to base operator."""
803+
def test_is_verified_hermitian(self, value):
804+
"""Test that `catalyst.ctrl` defers `is_verified_hermitian` to base operator."""
805805

806806
class DummyOp(Operator):
807807
"""DummyOp"""
808808

809809
num_wires = 1
810-
is_hermitian = value
810+
is_verified_hermitian = value
811811

812812
op = C_ctrl(DummyOp(1), 0)
813-
assert op.is_hermitian is value
813+
assert op.is_verified_hermitian is value
814814

815815
def test_map_wires(self):
816816
"""Test that we can get and set private wires."""

0 commit comments

Comments
 (0)