From 8e1edce8c1067e69369f1cf99bab8d72bb3eeb38 Mon Sep 17 00:00:00 2001 From: CalMacCQ <93673602+CalMacCQ@users.noreply.github.com> Date: Tue, 31 Dec 2024 12:32:09 +0000 Subject: [PATCH] make circuit builder function private --- pytket/extensions/qiskit/qiskit_convert.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pytket/extensions/qiskit/qiskit_convert.py b/pytket/extensions/qiskit/qiskit_convert.py index ad257bd6..9e4cb3e0 100644 --- a/pytket/extensions/qiskit/qiskit_convert.py +++ b/pytket/extensions/qiskit/qiskit_convert.py @@ -501,7 +501,7 @@ def _pytket_boxes_from_ifelseop( return CircBox(if_circuit), CircBox(else_circuit) -def build_if_else_circuit( +def _build_if_else_circuit( if_else_op: IfElseOp, qregs: list[QuantumRegister], cregs: list[ClassicalRegister], @@ -580,7 +580,7 @@ def add_qiskit_data( optype = None if type(instr) not in (PauliEvolutionGate, UnitaryGate, IfElseOp): - # Handling of PauliEvolutionGate and UnitaryGate below + # Handling of PauliEvolutionGate UnitaryGate and IfElseOp below optype = _optype_from_qiskit_instruction(instruction=instr) if optype == OpType.QControlBox: @@ -593,7 +593,7 @@ def add_qiskit_data( _add_state_preparation(self.tkc, qubits, instr) elif type(instr) is IfElseOp: - if_else_circ = build_if_else_circuit( + if_else_circ = _build_if_else_circuit( if_else_op=instr, qregs=self.qregs, cregs=self.cregs,