Skip to content

Commit

Permalink
make circuit builder function private
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMacCQ committed Dec 31, 2024
1 parent 52458ab commit 8e1edce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pytket/extensions/qiskit/qiskit_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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:
Expand All @@ -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,
Expand Down

0 comments on commit 8e1edce

Please sign in to comment.