Skip to content

Commit bcf8bd0

Browse files
Merge branch 'main' into complex128
2 parents cf49650 + 2559d95 commit bcf8bd0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pyqrack/qrack_simulator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def __init__(
6969
is_opencl = False
7070

7171
if pyzx_circuit is not None:
72-
qubitCount = pyzx_circuit.qubits
72+
qubit_count = pyzx_circuit.qubits
7373
elif qiskit_circuit is not None and qubit_count < 0:
7474
raise RuntimeError(
7575
"Must specify qubitCount with qiskitCircuit parameter in QrackSimulator constructor!"
@@ -83,7 +83,7 @@ def __init__(
8383
self.is_pure_stabilizer = False
8484

8585
if clone_sid > -1:
86-
self.sid = Qrack.qrack_lib.init_clone(cloneSid)
86+
self.sid = Qrack.qrack_lib.init_clone(clone_sid)
8787
else:
8888
if qubit_count < 0:
8989
qubit_count = 0
@@ -110,8 +110,8 @@ def __init__(
110110

111111
if pyzx_circuit is not None:
112112
self.run_pyzx_gates(pyzx_circuit.gates)
113-
elif qiskitCircuit is not None:
114-
self.run_qiskit_circuit(qiskitCircuit)
113+
elif qiskit_circuit is not None:
114+
self.run_qiskit_circuit(qiskit_circuit)
115115

116116
def __del__(self):
117117
if self.sid is not None:

0 commit comments

Comments
 (0)