diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index c2f672a6d..c270446a4 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -6,9 +6,12 @@ ### Improvements +* Update `qml.MultiControlledX` tests following the latest updates in PennyLane. + [(#1040)](https://github.com/PennyLaneAI/pennylane-lightning/pull/1040) + * Update the minimum required version of PennyLane to `v0.40.0`. [(#1033)](https://github.com/PennyLaneAI/pennylane-lightning/pull/1033) - + * Merge the `v0.40.0-rc` branch to the master and bump version. [(#1038)](https://github.com/PennyLaneAI/pennylane-lightning/pull/1038) @@ -23,7 +26,7 @@ This release contains contributions from (in alphabetical order): -Joseph Lee, Shuli Shu +Yushao Chen, Joseph Lee, Shuli Shu --- diff --git a/pennylane_lightning/core/_version.py b/pennylane_lightning/core/_version.py index 3a210a19e..828dc3123 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.41.0-dev4" +__version__ = "0.41.0-dev5" diff --git a/tests/lightning_tensor/test_gates_and_expval.py b/tests/lightning_tensor/test_gates_and_expval.py index 297a60b79..96a3b2dc9 100644 --- a/tests/lightning_tensor/test_gates_and_expval.py +++ b/tests/lightning_tensor/test_gates_and_expval.py @@ -73,7 +73,7 @@ def circuit_ansatz(params, wires): qml.matrix(qml.PauliX([wires[1]])), control_wires=[wires[0]], wires=wires[1] ) qml.DiagonalQubitUnitary(np.array([1, 1]), wires=wires[2]) - qml.MultiControlledX(wires=[wires[0], wires[1], wires[3]], control_values=[wires[0], wires[1]]) + qml.MultiControlledX(wires=[wires[0], wires[1], wires[3]], control_values=[0, 1]) qml.PauliX(wires=wires[1]) qml.PauliY(wires=wires[2]) qml.PauliZ(wires=wires[3]) diff --git a/tests/test_gates.py b/tests/test_gates.py index 8894bea8a..06eb5e361 100644 --- a/tests/test_gates.py +++ b/tests/test_gates.py @@ -89,7 +89,7 @@ def op(op_name): "MultiControlledX": [ qml.MultiControlledX, [], - {"wires": [0, 1, 2], "control_values": "01"}, + {"wires": [0, 1, 2], "control_values": [0, 1]}, ], "SingleExcitation": [qml.SingleExcitation, [0.123], {"wires": [0, 1]}], "SingleExcitationPlus": [qml.SingleExcitationPlus, [0.123], {"wires": [0, 1]}],