From 62c99c7a53f09632184931a338529d43478d3f79 Mon Sep 17 00:00:00 2001 From: Joey Carter Date: Fri, 14 Feb 2025 10:40:25 -0500 Subject: [PATCH] Remove test_global_phase_decomp_raises_warning --- frontend/test/pytest/test_quantum_control.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/frontend/test/pytest/test_quantum_control.py b/frontend/test/pytest/test_quantum_control.py index 79b4bd0dcd..1f0e8ef223 100644 --- a/frontend/test/pytest/test_quantum_control.py +++ b/frontend/test/pytest/test_quantum_control.py @@ -1666,14 +1666,6 @@ def test_decomposition_undefined(self): with pytest.raises(DecompositionUndefinedError): op.decomposition() - def test_global_phase_decomp_raises_warning(self): - """Test that ctrl(GlobalPhase).decomposition() raises a warning.""" - op = qml.ctrl(qml.GlobalPhase(1.23), control=[0, 1]) - with pytest.warns( - UserWarning, match="Multi-Controlled-GlobalPhase currently decomposes to nothing" - ): - assert op.decomposition() == [] - def test_control_on_zero(self): """Test decomposition applies PauliX gates to flip any control-on-zero wires."""