From 642bbfa9d1a1a1c11eb6ecafb0480bf9de2266cf Mon Sep 17 00:00:00 2001 From: ElePT <57907331+ElePT@users.noreply.github.com> Date: Fri, 20 Jan 2023 15:47:11 +0100 Subject: [PATCH] Fix test --- test/python/circuit/test_circuit_load_from_qpy.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/python/circuit/test_circuit_load_from_qpy.py b/test/python/circuit/test_circuit_load_from_qpy.py index 6c79fccc4b8d..349bca64f3f1 100644 --- a/test/python/circuit/test_circuit_load_from_qpy.py +++ b/test/python/circuit/test_circuit_load_from_qpy.py @@ -1058,13 +1058,13 @@ def test_standard_control_gates(self): mcu1_gate = MCU1Gate(np.pi, 2) mcx_gate = MCXGate(5) mcx_gray_gate = MCXGrayCode(5) - mcx_recursive_gate = MCXRecursive(5) - mcx_vchain_gate = MCXVChain(5) + mcx_recursive_gate = MCXRecursive(4) + mcx_vchain_gate = MCXVChain(3) qc.append(mcu1_gate, [0, 2, 1]) qc.append(mcx_gate, list(range(0, 6))) qc.append(mcx_gray_gate, list(range(0, 6))) - qc.append(mcx_recursive_gate, list(range(0, 6))) - qc.append(mcx_vchain_gate, list(range(0, 6))) + qc.append(mcx_recursive_gate, list(range(0, 5))) + qc.append(mcx_vchain_gate, list(range(0, 5))) qc.mcp(np.pi, [0, 2], 1) qc.mct([0, 2], 1) qc.mcx([0, 2], 1)