Skip to content

Commit

Permalink
Merge pull request #95 from qiboteam/docsup
Browse files Browse the repository at this point in the history
updating documentation
  • Loading branch information
scarrazza authored Dec 11, 2024
2 parents 7dd4208 + 5fed534 commit c79ae6d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ client = qibo_client.Client(token)

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

The `device` name indicates the specific system or machine that will process the
job. The `project` name corresponds to the project or group to which the user
belongs and which will be charged for the service usage.
6 changes: 5 additions & 1 deletion doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,14 @@ receive after registration.
>>> import qibo
>>> circuit = qibo.models.QFT(5)
>>> client = Client("your qibo token")
>>> job = client.run_circuit(circuit, nshots=100, device="sim")
>>> job = client.run_circuit(circuit, device="k2", project="personal", nshots=100)
>>> result = job.result()
>>> print(result)
The `device` name indicates the specific system or machine that will process the
job. The `project` name corresponds to the project or group to which the user
belongs and which will be charged for the service usage.

Content
=======

Expand Down

0 comments on commit c79ae6d

Please sign in to comment.