From 3ffc8cd745ce5b8b39863d40967f758246792479 Mon Sep 17 00:00:00 2001 From: Yael Ben-Haim Date: Thu, 5 Dec 2024 19:13:58 +0200 Subject: [PATCH] removed dubug prints --- .../transpiler/passes/basis/fold_rzz_angle.py | 11 ----------- .../transpiler/passes/basis/test_fold_rzz_angle.py | 5 ----- 2 files changed, 16 deletions(-) diff --git a/qiskit_ibm_runtime/transpiler/passes/basis/fold_rzz_angle.py b/qiskit_ibm_runtime/transpiler/passes/basis/fold_rzz_angle.py index bc766b37c..8506aa9b0 100644 --- a/qiskit_ibm_runtime/transpiler/passes/basis/fold_rzz_angle.py +++ b/qiskit_ibm_runtime/transpiler/passes/basis/fold_rzz_angle.py @@ -138,17 +138,6 @@ def _unbounded_parameter( + quad4 * (-wrap_angle) ) - val = -0.1 - print( - wrap_angle.assign(angle, val), - pi_phase.assign(angle, val), - global_phase.assign(angle, val), - quad1.assign(angle, val), - quad2.assign(angle, val), - quad3.assign(angle, val), - quad4.assign(angle, val), - ) - new_dag = DAGCircuit() new_dag.add_qubits(qubits=qubits) new_dag.apply_operation_back(GlobalPhaseGate(global_phase)) diff --git a/test/unit/transpiler/passes/basis/test_fold_rzz_angle.py b/test/unit/transpiler/passes/basis/test_fold_rzz_angle.py index bdb67290e..35d922df4 100644 --- a/test/unit/transpiler/passes/basis/test_fold_rzz_angle.py +++ b/test/unit/transpiler/passes/basis/test_fold_rzz_angle.py @@ -93,11 +93,6 @@ def test_folding_rzz_angle_unbound(self, angle): qc.assign_parameters({param: angle}, inplace=True) isa.assign_parameters({param: angle}, inplace=True) - print(isa) - - print(Operator.from_circuit(qc)) - print(Operator.from_circuit(isa)) - self.assertEqual(Operator.from_circuit(qc), Operator.from_circuit(isa)) for inst_data in isa.data: if inst_data.operation.name == "rzz":