From 92dfc1975be066a5d6d448c42795c96a09e3b3db Mon Sep 17 00:00:00 2001 From: Jake Lishman Date: Tue, 16 Jul 2024 15:21:25 +0100 Subject: [PATCH] Fix variable lint complaint --- test/python/qasm3/test_export.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/python/qasm3/test_export.py b/test/python/qasm3/test_export.py index 536c0f334e98..edb3c9162bf7 100644 --- a/test/python/qasm3/test_export.py +++ b/test/python/qasm3/test_export.py @@ -443,11 +443,11 @@ def test_custom_gate_with_params_bound_main_call(self): def test_multiple_pauli_evolution_gates(self): """Pauli evolution gates should be detected as distinct.""" - t = ParameterVector("t", 3) + vec = ParameterVector("t", 3) qc = QuantumCircuit(2) - qc.append(PauliEvolutionGate(Pauli("XX"), t[0]), [0, 1]) - qc.append(PauliEvolutionGate(Pauli("YY"), t[1]), [0, 1]) - qc.append(PauliEvolutionGate(Pauli("ZZ"), t[2]), [0, 1]) + qc.append(PauliEvolutionGate(Pauli("XX"), vec[0]), [0, 1]) + qc.append(PauliEvolutionGate(Pauli("YY"), vec[1]), [0, 1]) + qc.append(PauliEvolutionGate(Pauli("ZZ"), vec[2]), [0, 1]) expected = """\ OPENQASM 3.0; include "stdgates.inc";