|
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 measurement, is not coherent with the |
7 |
| - related objets (circuit, matrix, observable, etc.)""" |
| 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...).""" |
8 | 9 |
|
9 | 10 |
|
10 | 11 | class ResultAttributeError(AttributeError):
|
11 |
| - """Raised when one tries to access the attribute of the result that is incoherent with the associated job.""" |
| 12 | + """Raised when one tries to access the attribute of the result that is |
| 13 | + incoherent with the associated job.""" |
12 | 14 |
|
13 | 15 |
|
14 | 16 | class DeviceJobIncompatibleError(ValueError):
|
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)""" |
| 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).""" |
17 | 19 |
|
18 | 20 |
|
19 | 21 | class RemoteExecutionError(ConnectionError):
|
20 |
| - """Raised when an error occurred during a remote connection, submission or execution""" |
| 22 | + """Raised when an error occurred during a remote connection, submission or |
| 23 | + execution.""" |
21 | 24 |
|
22 | 25 |
|
23 | 26 | class IBMRemoteExecutionError(RemoteExecutionError):
|
24 |
| - """Raised when an error occurred during the remote execution process of job(s) on an IBM device""" |
| 27 | + """Raised when an error occurred during the remote execution process of |
| 28 | + job(s) on an IBM device.""" |
25 | 29 |
|
26 | 30 |
|
27 | 31 | class QLMRemoteExecutionError(RemoteExecutionError):
|
28 |
| - """Raised when an error occurred during the remote execution process of job(s) on the remote QLM""" |
| 32 | + """Raised when an error occurred during the remote execution process of |
| 33 | + job(s) on the remote QLM.""" |
29 | 34 |
|
30 | 35 |
|
31 | 36 | class AWSBraketRemoteExecutionError(RemoteExecutionError):
|
32 |
| - """Raised when an error occurred during the remote execution process of job(s) on the remote Amazon Braket""" |
| 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.""" |
0 commit comments