Skip to content

Commit

Permalink
fix: redirecting to the dashboard for device name
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLiegiBastonLiegi committed Oct 21, 2024
1 parent 85604e8 commit 45dc4e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ obtain the needed token to run computations on the cluster.

The following snippet provides a basic usage example.
Replace the `your-token` string with your user token received during the
registration process.
registration process. To check which devices are available with your account
please visit the dashboard at [https://cloud.qibo.science/](https://cloud.qibo.science/).

```python
import qibo
Expand All @@ -46,7 +47,8 @@ token = "your-token"
client = qibo_client.Client(token)

# run the circuit
job = client.run_circuit(circuit, nshots=1000, device="k2")
device = "device_name"
job = client.run_circuit(circuit, nshots=1000, device=device)
result = job.result()
print(result)
```

0 comments on commit 45dc4e8

Please sign in to comment.