Skip to content

Commit f7f57a1

Browse files
committed
Fix error in examples/ibm.py
1 parent cec7452 commit f7f57a1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

examples/ibm.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ def run_entangle(eng, num_qubits=3):
4949
if device is None:
5050
token = getpass.getpass(prompt='IBM device > ')
5151
# create main compiler engine for the IBM back-end
52-
eng = MainEngine(IBMBackend(use_hardware=True, token=token num_runs=1024,
52+
eng = MainEngine(IBMBackend(use_hardware=True, token=token, num_runs=1024,
5353
verbose=False, device=device),
54-
engine_list=projectq.setups.ibm.get_engine_list(token=token, device=device))
54+
engine_list=projectq.setups.ibm.get_engine_list(
55+
token=token, device=device))
5556
# run the circuit and print the result
5657
print(run_entangle(eng))

0 commit comments

Comments
 (0)