@@ -8,7 +8,7 @@ from typing import Dict, List, Optional
88from .qpu .quilc import CompilerOpts
99from ._execution_data import ExecutionData
1010
11- class QcsExecutionError (RuntimeError ):
11+ class QCSExecutionError (RuntimeError ):
1212 """Error encounteted when executing programs."""
1313
1414 ...
@@ -22,28 +22,58 @@ class Executable:
2222 compile_with_quilc : Optional [bool ] = None ,
2323 compiler_options : Optional [CompilerOpts ] = None ,
2424 ) -> "Executable" : ...
25- async def execute_on_qvm (self ) -> ExecutionData :
25+ def execute_on_qvm (self ) -> ExecutionData :
2626 """
2727 Execute on a QVM which must be available at the configured URL (default http://localhost:5000).
2828
2929 Raises:
30- - ``QcsExecutionError ``: If the job fails to execute.
30+ - ``QCSExecutionError ``: If the job fails to execute.
3131 """
3232 ...
33- async def execute_on_qpu (self , quantum_processor_id : str ) -> ExecutionData :
33+ async def execute_on_qvm_async (self ) -> ExecutionData :
34+ """
35+ Async version of ``execute_on_qvm``.
36+
37+ Execute on a QVM which must be available at the configured URL (default http://localhost:5000).
38+
39+ Raises:
40+ - ``QCSExecutionError``: If the job fails to execute.
41+ """
42+ ...
43+ def execute_on_qpu (self , quantum_processor_id : str ) -> ExecutionData :
3444 """
3545 Compile the program and execute it on a QPU, waiting for results.
3646
3747 Raises:
38- - ``QcsExecutionError ``: If the job fails to execute.
48+ - ``QCSExecutionError ``: If the job fails to execute.
3949 """
4050 ...
41- async def retrieve_results (self , job_handle : JobHandle ) -> ExecutionData :
51+ async def execute_on_qpu_async (self , quantum_processor_id : str ) -> ExecutionData :
4252 """
53+ Async version of ``execute_on_qvm``.
54+
55+ Compile the program and execute it on a QPU, waiting for results.
56+
57+ Raises:
58+ - ``QCSExecutionError``: If the job fails to execute.
59+ """
60+ ...
61+ def retrieve_results (self , job_handle : JobHandle ) -> ExecutionData :
62+ """
63+ Wait for the results of a job to complete.
64+
65+ Raises:
66+ - ``QCSExecutionError``: If there is a problem constructing job results.
67+ """
68+ ...
69+ async def retrieve_results_async (self , job_handle : JobHandle ) -> ExecutionData :
70+ """
71+ Async version of ``retrieve_results``.
72+
4373 Wait for the results of a job to complete.
4474
4575 Raises:
46- - ``QcsExecutionError ``: If there is a problem constructing job results.
76+ - ``QCSExecutionError ``: If there is a problem constructing job results.
4777 """
4878 ...
4979
@@ -95,6 +125,6 @@ class ExeParameter:
95125
96126class Service (Enum ):
97127 Quilc = "Quilc"
98- Qvm = "Qvm "
99- Qcs = "Qcs "
100- Qpu = "Qpu "
128+ QVM = "QVM "
129+ QCS = "QCS "
130+ QPU = "QPU "
0 commit comments