From 3f5fe18010b53a06c098bb66f83a78c801c8a8a4 Mon Sep 17 00:00:00 2001 From: Will Date: Wed, 13 Nov 2024 10:44:53 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Guillermo Alonso-Linaje <65235481+KetpuntoG@users.noreply.github.com> Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com> --- .dep-versions | 1 - frontend/test/pytest/test_template.py | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.dep-versions b/.dep-versions index 7ce268bb2b..3adc32eb67 100644 --- a/.dep-versions +++ b/.dep-versions @@ -10,7 +10,6 @@ enzyme=v0.0.149 # 'doc/requirements.txt pennylane=0.40.0-dev11 - # For a custom LQ/LK version, update the package version here and at # 'doc/requirements.txt'. Also, update the 'LIGHTNING_GIT_TAG' at # 'runtime/Makefile' and at all GitHub workflows, using the exact diff --git a/frontend/test/pytest/test_template.py b/frontend/test/pytest/test_template.py index 8e191e0e8a..fcc38a032c 100644 --- a/frontend/test/pytest/test_template.py +++ b/frontend/test/pytest/test_template.py @@ -526,7 +526,7 @@ def body(i): def test_reflection(backend): - """Test reflection.""" + """Test Reflection.""" @qml.prod def hadamards(wires): @@ -552,7 +552,7 @@ def reflection(alpha): def test_amplitude_amplification(backend): - """Test amplitude amplification.""" + """Test AmplitudeAmplification.""" def amplitude_amplification(params): qml.RY(params[0], wires=0) @@ -605,7 +605,7 @@ def fermionic(weight): def test_arbitrary_unitary(backend): - """Test arbitrary unitary.""" + """Test ArbitraryUnitary.""" def arbitrary_unitary(weights): qml.ArbitraryUnitary(weights, wires=range(2)) @@ -669,7 +669,7 @@ def aqft(order): @pytest.mark.xfail(reason="Takes quantum tape as a parameter") def test_hilbert_schmidt(backend): - """Test Hilbert Schmidt.""" + """Test HilbertSchmidt.""" with qml.QueuingManager.stop_recording(): u_tape = qml.tape.QuantumTape([qml.Hadamard(0)]) @@ -690,7 +690,7 @@ def hilbert_test(v_params): @pytest.mark.xfail(reason="Takes quantum tape as a parameter") def test_local_hilbert_schmidt(backend): - """Test Local Hilbert Schmidt.""" + """Test LocalHilbertSchmidt.""" with qml.QueuingManager.stop_recording(): u_tape = qml.tape.QuantumTape([qml.CZ(wires=(0, 1))]) @@ -917,7 +917,7 @@ def select(): def test_controlled_sequence(backend): - """Test controlled sequence.""" + """Test ControlledSequence.""" def controlled_sequence(x): """Test circuit"""