You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide.rst
+39Lines changed: 39 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,45 @@ Handles to computing resources are obtained through the :class:`AQTProvider <qis
19
19
20
20
.. tip:: If no access token to the AQT cloud is available, the :class:`AQTProvider <qiskit_aqt_provider.aqt_provider.AQTProvider>` can nevertheless provide handles to direct-access resources and AQT-compatible simulators running on the local machine. This is the default behavior if the ``access_token`` argument to :meth:`AQTProvider <qiskit_aqt_provider.aqt_provider.AQTProvider.__init__>` is empty or invalid.
21
21
22
+
23
+
Authentication with an Arnica account
24
+
-------------------------------------
25
+
.. tip:: Use this method if you were asked to create your own account to use the AQT Arnica portal.
26
+
27
+
Call :meth:`AQTProvider <qiskit_aqt_provider.aqt_provider.AQTProvider.__init__>` to log in and store your access token securely on the local machine.
28
+
29
+
.. code-block::
30
+
31
+
from qiskit_aqt_provider import AQTProvider
32
+
33
+
provider = AQTProvider()
34
+
provider.log_in()
35
+
36
+
37
+
Authentication with client credentials
38
+
--------------------------------------
39
+
.. tip:: Use this method if you received client credentials from AQT to use the Arnica portal.
40
+
41
+
Use the `ArnicaConfig` helper class to configure the provider, then call :meth:`AQTProvider <qiskit_aqt_provider.aqt_provider.AQTProvider.__init__>` to exchange your credentials for an
42
+
access token, which is stored on the local machine.
43
+
44
+
.. code-block::
45
+
46
+
from qiskit_aqt_provider import AQTProvider
47
+
from qiskit_aqt_provider.aqt_provider import ArnicaConfig
48
+
49
+
config = ArnicaConfig(
50
+
client_id="YOUR_CLIENT_ID",
51
+
client_secret="YOUR_CLIENT_SECRET",
52
+
)
53
+
provider = AQTProvider(None, config)
54
+
provider.log_in()
55
+
56
+
57
+
Authentication with a static API token
58
+
--------------------------------------
59
+
.. tip:: If you received an access token from AQT, you can use it to authenticate with the AQT cloud portal and access remote quantum computing resources.
60
+
22
61
The access token can be configured by passing it as the first argument to the
0 commit comments