|
1 | 1 | class InstructionParsingError(ValueError):
|
2 |
| - """Raised when an QASM instruction encountered by the parser is malformed.""" |
| 2 | + """Raised when an QASM instruction encountered by the parser is malformed""" |
3 | 3 |
|
4 | 4 |
|
5 | 5 | class NumberQubitsError(ValueError):
|
6 |
| - """Raised when the number of qubits defining an instruction, a gate, or a |
7 |
| - measurement, is not coherent with the related objects (circuit, matrix, |
8 |
| - observable, etc...).""" |
| 6 | + """Raised when the number of qubits defining an instruction, a gate, or a measurement, is not coherent with the |
| 7 | + related objets (circuit, matrix, observable, etc.)""" |
9 | 8 |
|
10 | 9 |
|
11 | 10 | class ResultAttributeError(AttributeError):
|
12 |
| - """Raised when one tries to access the attribute of the result that is |
13 |
| - incoherent with the associated job.""" |
| 11 | + """Raised when one tries to access the attribute of the result that is incoherent with the associated job.""" |
14 | 12 |
|
15 | 13 |
|
16 | 14 | class DeviceJobIncompatibleError(ValueError):
|
17 |
| - """Raised when one tries to run a job with a JobType that is not suitable |
18 |
| - for the selected device (for example SAMPLE job on a statevector simulator).""" |
| 15 | + """Raised when one tries to run a job with a JobType that is not suitable for the selected device |
| 16 | + (for example SAMPLE job on a statevector simulator)""" |
19 | 17 |
|
20 | 18 |
|
21 | 19 | class RemoteExecutionError(ConnectionError):
|
22 |
| - """Raised when an error occurred during a remote connection, submission or |
23 |
| - execution.""" |
| 20 | + """Raised when an error occurred during a remote connection, submission or execution""" |
24 | 21 |
|
25 | 22 |
|
26 | 23 | class IBMRemoteExecutionError(RemoteExecutionError):
|
27 |
| - """Raised when an error occurred during the remote execution process of |
28 |
| - job(s) on an IBM device.""" |
| 24 | + """Raised when an error occurred during the remote execution process of job(s) on an IBM device""" |
29 | 25 |
|
30 | 26 |
|
31 | 27 | class QLMRemoteExecutionError(RemoteExecutionError):
|
32 |
| - """Raised when an error occurred during the remote execution process of |
33 |
| - job(s) on the remote QLM.""" |
| 28 | + """Raised when an error occurred during the remote execution process of job(s) on the remote QLM""" |
34 | 29 |
|
35 | 30 |
|
36 | 31 | class AWSBraketRemoteExecutionError(RemoteExecutionError):
|
37 |
| - """Raised when an error occurred during the remote execution process of |
38 |
| - job(s) on the remote Amazon Braket.""" |
39 |
| - |
40 |
| - |
41 |
| -class UnsupportedBraketFeaturesWarning(UserWarning): |
42 |
| - """Warning for potential compatibility issues with Braket.""" |
43 |
| - |
44 |
| - |
45 |
| -class OpenQASMTranslationWarning(UserWarning): |
46 |
| - """Warning for potential translation error when exporting to OpenQASM.""" |
| 32 | + """Raised when an error occurred during the remote execution process of job(s) on the remote Amazon Braket""" |
0 commit comments