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)