Skip to content

Commit 5ade12a

Browse files
feat(qaas): update documentation (scaleway#1403)
Co-authored-by: esoulard <esoulard@scaleway.com>
1 parent c9484af commit 5ade12a

File tree

4 files changed

+36
-36
lines changed

4 files changed

+36
-36
lines changed

scaleway-async/scaleway_async/qaas/v1alpha1/api.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595

9696
class QaasV1Alpha1API(API):
9797
"""
98-
This API allows you to manage Scaleway Quantum as a Service.
98+
This API allows you to allocate and program Quantum Processing Units (QPUs) to run quantum algorithms.
9999
"""
100100

101101
async def get_job(
@@ -105,7 +105,7 @@ async def get_job(
105105
) -> Job:
106106
"""
107107
Get job information.
108-
Retrieve information about the provided **job ID**, such as status, payload, and result.
108+
Retrieve information about the provided **job ID**, mainly used to get the current status.
109109
:param job_id: Unique ID of the job you want to get.
110110
:return: :class:`Job <Job>`
111111
@@ -135,7 +135,7 @@ async def wait_for_job(
135135
) -> Job:
136136
"""
137137
Get job information.
138-
Retrieve information about the provided **job ID**, such as status, payload, and result.
138+
Retrieve information about the provided **job ID**, mainly used to get the current status.
139139
:param job_id: Unique ID of the job you want to get.
140140
:return: :class:`Job <Job>`
141141
@@ -173,7 +173,7 @@ async def list_jobs(
173173
) -> ListJobsResponse:
174174
"""
175175
List all jobs within a project or session.
176-
Retrieve information about all jobs within a given project or session.
176+
Retrieve information about all jobs within a given session.
177177
:param session_id: List jobs with this session ID.
178178
One-Of ('resource_id'): at most one of 'session_id', 'project_id' could be set.
179179
:param project_id: List jobs with this project ID.
@@ -222,7 +222,7 @@ async def list_jobs_all(
222222
) -> list[Job]:
223223
"""
224224
List all jobs within a project or session.
225-
Retrieve information about all jobs within a given project or session.
225+
Retrieve information about all jobs within a given session.
226226
:param session_id: List jobs with this session ID.
227227
One-Of ('resource_id'): at most one of 'session_id', 'project_id' could be set.
228228
:param project_id: List jobs with this project ID.
@@ -343,7 +343,7 @@ async def create_job(
343343
) -> Job:
344344
"""
345345
Create a job.
346-
Create a job to be executed inside a session.
346+
Create a job to be executed inside a QPU session.
347347
:param name: Name of the job.
348348
:param session_id: Session in which the job is executed.
349349
:param circuit: Quantum circuit that should be executed.
@@ -642,7 +642,7 @@ async def get_session(
642642
) -> Session:
643643
"""
644644
Get session information.
645-
Retrieve information about the provided **session ID**, such as name, status, and number of executed jobs.
645+
Retrieve information about the provided **session ID**, such as name and status.
646646
:param session_id: Unique ID of the session.
647647
:return: :class:`Session <Session>`
648648
@@ -672,7 +672,7 @@ async def wait_for_session(
672672
) -> Session:
673673
"""
674674
Get session information.
675-
Retrieve information about the provided **session ID**, such as name, status, and number of executed jobs.
675+
Retrieve information about the provided **session ID**, such as name and status.
676676
:param session_id: Unique ID of the session.
677677
:return: :class:`Session <Session>`
678678
@@ -710,7 +710,7 @@ async def list_sessions(
710710
) -> ListSessionsResponse:
711711
"""
712712
List all sessions.
713-
Retrieve information about all sessions.
713+
Retrieve information about all QPU sessions.
714714
:param platform_id: List sessions that have been created for this platform.
715715
:param tags: List sessions with these tags.
716716
:param page: Page number.
@@ -753,7 +753,7 @@ async def list_sessions_all(
753753
) -> list[Session]:
754754
"""
755755
List all sessions.
756-
Retrieve information about all sessions.
756+
Retrieve information about all QPU sessions.
757757
:param platform_id: List sessions that have been created for this platform.
758758
:param tags: List sessions with these tags.
759759
:param page: Page number.
@@ -798,7 +798,7 @@ async def create_session(
798798
) -> Session:
799799
"""
800800
Create a session.
801-
Create a dedicated session for the specified platform.
801+
Create a new QPU session for the specified platform. Once ready, jobs can be sent to this session.
802802
:param platform_id: ID of the Platform for which the session was created.
803803
:param project_id: ID of the Project in which the session was created.
804804
:param name: Name of the session.
@@ -896,7 +896,7 @@ async def terminate_session(
896896
) -> Session:
897897
"""
898898
Terminate an existing session.
899-
Terminate a session by its unique ID and cancel all its attached jobs and booking.
899+
Terminate a session by its unique ID and cancel all its attached jobs and bookings.
900900
:param session_id: Unique ID of the session.
901901
:return: :class:`Session <Session>`
902902
@@ -926,7 +926,7 @@ async def delete_session(
926926
) -> None:
927927
"""
928928
Delete an existing session.
929-
Delete a session by its unique ID and delete all its attached job and booking.
929+
Delete a session by its unique ID and delete all its attached jobs and bookings.
930930
:param session_id: Unique ID of the session.
931931
932932
Usage:

scaleway-async/scaleway_async/qaas/v1alpha1/types.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -535,27 +535,27 @@ class Platform:
535535

536536
provider_name: str
537537
"""
538-
Provider name of the platform.
538+
Name of the technological provider of the platform in lowercase (quandela, pasqal...).
539539
"""
540540

541541
backend_name: str
542542
"""
543-
Name of the running backend over the platform (ascella, qsim, aer...).
543+
Name of the running emulation backend or QPU model of the platform in lowercase (mosaiq, qsim, aer...).
544544
"""
545545

546546
type_: PlatformType
547547
"""
548-
Type of the platform.
548+
Type of the platform (emulator or qpu).
549549
"""
550550

551551
technology: PlatformTechnology
552552
"""
553-
Technology used by the platform.
553+
Quantum technology used by the platform (trapped-ion, photonic, superconducting qubits...).
554554
"""
555555

556556
max_qubit_count: int
557557
"""
558-
Estimated maximum number of qubits supported by the platform.
558+
Maximum number of qubits supported by the platform (estimated for emulator).
559559
"""
560560

561561
max_shot_count: int

scaleway/scaleway/qaas/v1alpha1/api.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595

9696
class QaasV1Alpha1API(API):
9797
"""
98-
This API allows you to manage Scaleway Quantum as a Service.
98+
This API allows you to allocate and program Quantum Processing Units (QPUs) to run quantum algorithms.
9999
"""
100100

101101
def get_job(
@@ -105,7 +105,7 @@ def get_job(
105105
) -> Job:
106106
"""
107107
Get job information.
108-
Retrieve information about the provided **job ID**, such as status, payload, and result.
108+
Retrieve information about the provided **job ID**, mainly used to get the current status.
109109
:param job_id: Unique ID of the job you want to get.
110110
:return: :class:`Job <Job>`
111111
@@ -135,7 +135,7 @@ def wait_for_job(
135135
) -> Job:
136136
"""
137137
Get job information.
138-
Retrieve information about the provided **job ID**, such as status, payload, and result.
138+
Retrieve information about the provided **job ID**, mainly used to get the current status.
139139
:param job_id: Unique ID of the job you want to get.
140140
:return: :class:`Job <Job>`
141141
@@ -173,7 +173,7 @@ def list_jobs(
173173
) -> ListJobsResponse:
174174
"""
175175
List all jobs within a project or session.
176-
Retrieve information about all jobs within a given project or session.
176+
Retrieve information about all jobs within a given session.
177177
:param session_id: List jobs with this session ID.
178178
One-Of ('resource_id'): at most one of 'session_id', 'project_id' could be set.
179179
:param project_id: List jobs with this project ID.
@@ -222,7 +222,7 @@ def list_jobs_all(
222222
) -> list[Job]:
223223
"""
224224
List all jobs within a project or session.
225-
Retrieve information about all jobs within a given project or session.
225+
Retrieve information about all jobs within a given session.
226226
:param session_id: List jobs with this session ID.
227227
One-Of ('resource_id'): at most one of 'session_id', 'project_id' could be set.
228228
:param project_id: List jobs with this project ID.
@@ -343,7 +343,7 @@ def create_job(
343343
) -> Job:
344344
"""
345345
Create a job.
346-
Create a job to be executed inside a session.
346+
Create a job to be executed inside a QPU session.
347347
:param name: Name of the job.
348348
:param session_id: Session in which the job is executed.
349349
:param circuit: Quantum circuit that should be executed.
@@ -642,7 +642,7 @@ def get_session(
642642
) -> Session:
643643
"""
644644
Get session information.
645-
Retrieve information about the provided **session ID**, such as name, status, and number of executed jobs.
645+
Retrieve information about the provided **session ID**, such as name and status.
646646
:param session_id: Unique ID of the session.
647647
:return: :class:`Session <Session>`
648648
@@ -672,7 +672,7 @@ def wait_for_session(
672672
) -> Session:
673673
"""
674674
Get session information.
675-
Retrieve information about the provided **session ID**, such as name, status, and number of executed jobs.
675+
Retrieve information about the provided **session ID**, such as name and status.
676676
:param session_id: Unique ID of the session.
677677
:return: :class:`Session <Session>`
678678
@@ -710,7 +710,7 @@ def list_sessions(
710710
) -> ListSessionsResponse:
711711
"""
712712
List all sessions.
713-
Retrieve information about all sessions.
713+
Retrieve information about all QPU sessions.
714714
:param platform_id: List sessions that have been created for this platform.
715715
:param tags: List sessions with these tags.
716716
:param page: Page number.
@@ -753,7 +753,7 @@ def list_sessions_all(
753753
) -> list[Session]:
754754
"""
755755
List all sessions.
756-
Retrieve information about all sessions.
756+
Retrieve information about all QPU sessions.
757757
:param platform_id: List sessions that have been created for this platform.
758758
:param tags: List sessions with these tags.
759759
:param page: Page number.
@@ -798,7 +798,7 @@ def create_session(
798798
) -> Session:
799799
"""
800800
Create a session.
801-
Create a dedicated session for the specified platform.
801+
Create a new QPU session for the specified platform. Once ready, jobs can be sent to this session.
802802
:param platform_id: ID of the Platform for which the session was created.
803803
:param project_id: ID of the Project in which the session was created.
804804
:param name: Name of the session.
@@ -896,7 +896,7 @@ def terminate_session(
896896
) -> Session:
897897
"""
898898
Terminate an existing session.
899-
Terminate a session by its unique ID and cancel all its attached jobs and booking.
899+
Terminate a session by its unique ID and cancel all its attached jobs and bookings.
900900
:param session_id: Unique ID of the session.
901901
:return: :class:`Session <Session>`
902902
@@ -926,7 +926,7 @@ def delete_session(
926926
) -> None:
927927
"""
928928
Delete an existing session.
929-
Delete a session by its unique ID and delete all its attached job and booking.
929+
Delete a session by its unique ID and delete all its attached jobs and bookings.
930930
:param session_id: Unique ID of the session.
931931
932932
Usage:

scaleway/scaleway/qaas/v1alpha1/types.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -535,27 +535,27 @@ class Platform:
535535

536536
provider_name: str
537537
"""
538-
Provider name of the platform.
538+
Name of the technological provider of the platform in lowercase (quandela, pasqal...).
539539
"""
540540

541541
backend_name: str
542542
"""
543-
Name of the running backend over the platform (ascella, qsim, aer...).
543+
Name of the running emulation backend or QPU model of the platform in lowercase (mosaiq, qsim, aer...).
544544
"""
545545

546546
type_: PlatformType
547547
"""
548-
Type of the platform.
548+
Type of the platform (emulator or qpu).
549549
"""
550550

551551
technology: PlatformTechnology
552552
"""
553-
Technology used by the platform.
553+
Quantum technology used by the platform (trapped-ion, photonic, superconducting qubits...).
554554
"""
555555

556556
max_qubit_count: int
557557
"""
558-
Estimated maximum number of qubits supported by the platform.
558+
Maximum number of qubits supported by the platform (estimated for emulator).
559559
"""
560560

561561
max_shot_count: int

0 commit comments

Comments
 (0)