Skip to content

Commit ba6c288

Browse files
committed
format
Signed-off-by: Sachin Pisal <[email protected]>
1 parent 86218fb commit ba6c288

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

python/tests/backends/test_IonQ.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def ctrl_z_kernel():
364364

365365
def test_shot_wise_output_with_memory_and_qpu():
366366

367-
url="http://localhost:{}".format(port)
367+
url = "http://localhost:{}".format(port)
368368

369369
# set the mock server target
370370
requests.post(f"{url}/_mock_server_config_target?target=aria-1")
@@ -378,14 +378,15 @@ def bell_state():
378378
cx(qubits[0], qubits[1])
379379

380380
results = cudaq.sample(bell_state, shots_count=3)
381-
assert(results.get_sequential_data() == ['011', '011', '011'])
381+
assert (results.get_sequential_data() == ['011', '011', '011'])
382382

383383
# reset the mock server target
384384
requests.post(f"{url}/_mock_server_config_target?target=")
385385

386+
386387
def test_shot_wise_output_with_no_memory_and_qpu():
387388

388-
url="http://localhost:{}".format(port)
389+
url = "http://localhost:{}".format(port)
389390

390391
# set the mock server target
391392
requests.post(f"{url}/_mock_server_config_target?target=aria-1")
@@ -399,14 +400,15 @@ def bell_state():
399400
cx(qubits[0], qubits[1])
400401

401402
results = cudaq.sample(bell_state, shots_count=3)
402-
assert(results.get_sequential_data() == [])
403+
assert (results.get_sequential_data() == [])
403404

404405
# reset the mock server target
405406
requests.post(f"{url}/_mock_server_config_target?target=")
406407

408+
407409
def test_shot_wise_output_with_memory_and_noise_model():
408410

409-
url="http://localhost:{}".format(port)
411+
url = "http://localhost:{}".format(port)
410412

411413
# set the mock server target
412414
requests.post(f"{url}/_mock_server_config_target?target=simulator")
@@ -421,7 +423,7 @@ def bell_state():
421423
cx(qubits[0], qubits[1])
422424

423425
results = cudaq.sample(bell_state, shots_count=3)
424-
assert(results.get_sequential_data() == ['011', '011', '011'])
426+
assert (results.get_sequential_data() == ['011', '011', '011'])
425427

426428
# reset the mock server target
427429
requests.post(f"{url}/_mock_server_config_target?target=")
@@ -430,7 +432,7 @@ def bell_state():
430432

431433
def test_shot_wise_output_with_no_memory_and_noise_model():
432434

433-
url="http://localhost:{}".format(port)
435+
url = "http://localhost:{}".format(port)
434436

435437
# set the mock server target
436438
requests.post(f"{url}/_mock_server_config_target?target=simulator")
@@ -445,7 +447,7 @@ def bell_state():
445447
cx(qubits[0], qubits[1])
446448

447449
results = cudaq.sample(bell_state, shots_count=3)
448-
assert(results.get_sequential_data() == [])
450+
assert (results.get_sequential_data() == [])
449451

450452
# reset the mock server target
451453
requests.post(f"{url}/_mock_server_config_target?target=")

0 commit comments

Comments
 (0)