Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
andrijapau authored Jan 10, 2025
1 parent 7dba218 commit 975eb62
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions demonstrations/ibm_pennylane.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,11 @@
# Initialize QiskitRuntimeService
service = QiskitRuntimeService()

# Use an online simulator available on IBM Cloud
# Use the `ibmq_qasm_simulator` available on IBM Cloud
backend = service.backend("ibmq_qasm_simulator")

try:
# Although we only need 4 qubits, our device supports a maximum of 31 qubits, therefore we
# initialize with wires=31
# Although we only need 4 qubits, our device supports a maximum of 31 qubits, therefore we initialize with wires=31
dev = qml.device("qiskit.remote", wires=31, backend=backend)
except Exception as e:
print(e)
Expand Down

0 comments on commit 975eb62

Please sign in to comment.