From f28e35e51f0b7a69a82a02d9b60c5ba251f49fc8 Mon Sep 17 00:00:00 2001 From: Paul Nation Date: Fri, 28 Feb 2020 14:48:02 -0500 Subject: [PATCH] remove old qx4 --- games/game_engines/quantum_slot/quantum_slot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/games/game_engines/quantum_slot/quantum_slot.py b/games/game_engines/quantum_slot/quantum_slot.py index dad7042..2202352 100644 --- a/games/game_engines/quantum_slot/quantum_slot.py +++ b/games/game_engines/quantum_slot/quantum_slot.py @@ -40,7 +40,7 @@ def get_slot_values(backend, qslot): result = job.result() counts = list(result.get_counts().keys())[0] return int(counts[0:3], 2), int(counts[3:6], 2), int(counts[6:9], 2) - elif backend == 'ibmq_5_tenerife': + elif backend == 'ibmqx2': int1 = qslot.children[0]._stored_ints.pop(0) int2 = qslot.children[0]._stored_ints.pop(0) int3 = qslot.children[0]._stored_ints.pop(0) @@ -159,7 +159,7 @@ def get_ibmq_ints(qslot): qslot.children[0]._stored_ints = [ int(kk, 16) for kk in job.result().results[0].data.memory] - qslot.children[1].children[0].options = ['qasm_simulator', 'ibmq_5_tenerife', 'ANU QRNG'] + qslot.children[1].children[0].options = ['qasm_simulator', 'ibmqx2', 'ANU QRNG'] #top @@ -299,7 +299,7 @@ def get_ibmq_ints(qslot): slot._credits = 20 solver = widgets.Dropdown( - options=['qasm_simulator', 'ibmq_5_tenerife', 'ANU QRNG'], + options=['qasm_simulator', 'ibmqx2', 'ANU QRNG'], value='qasm_simulator', description='', disabled=False,