Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

Commit

Permalink
added more user actionable errors to error.rst (#744)
Browse files Browse the repository at this point in the history
* fixed typo for 9XXX

* fixed indentation

* Fixed formatting issues

* fixed linter issue
  • Loading branch information
Kang-Bae authored and nonhermitian committed Dec 19, 2019
1 parent f17b69a commit 89a2e58
Showing 1 changed file with 56 additions and 4 deletions.
60 changes: 56 additions & 4 deletions docs/errors/errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Error codes Messages

**6003** :Error message: Too few experiments given ({} < {}).
:Solution: Increase number of experiments.

================ ============================================================


Expand All @@ -53,8 +54,8 @@ Error codes Messages
================ ============================================================
**7000** :Error message: Instruction not in basis gates:
instruction: {}, qubits: {}, params: {}
:Solution: Circuits must be constructed from backend
basis gates.
:Solution: Instruction not supported by backend. Please
remove the instruction shown in the error message.

**7001** :Error message: Instruction {} is not supported.
:Solution: Remove unsupported instruction, or run on a
Expand All @@ -66,10 +67,20 @@ Error codes Messages

**7003** :Error message: qubits: {} and classical bits: {} do not
have equal lengths.
:Solution: Qubit and Clbits must be correctly mapped.
:Solution: Length of memory slots must be same as number of
qubits used

**7004** :Error message: Qubit measured multiple times in circuit.
:Solution: Remove multiple measurements on qubits.

**7005** :Error message: Error in supplied instruction.
:Solution: Please refer to IQX gate overview and make sure
the instructions are correct.

**7006** :Error message: Qubit measurement is followed by instructions.
:Solution: Cannot perform any instruction on a measured qubit.
Please remove all instructions following a measurement.

================ ============================================================


Expand All @@ -94,12 +105,53 @@ Error codes Messages
**8003** :Error message: Total pulses exceeds the maximum number of
pulses for channel: {}, ({} > {}).
:Solution: Reduce number of pulses below specified limit.

**8004** :Error message: Channel {}{} is not available.
:Solution: Must use available drive channels.

**8006** :Error message: Gate {}in line {}s not understood ({}).
:Solution: This instruction is not supported. Please make
sure that the gate name is correct and it is within
the gate overview section of IQX website.

**8007** :Error message: Qasm gate not understood: {}.
:Solution: The instruction is not understood. Please refer to IQX
website and make sure the instruction is within the gate
overview section.

**8008** :Error message: Unconnected Qubits.
:Solution: Please refer to the qubit mapping for this backend in
IQX website and make sure the qubits are connected.

**8009** :Error message: Measurement level is not supported..
:Solution: The given measurement level is not supported on this backend.
Please change it to 0-2 except the measurement level specified.

**8011** :Error message: Pulse experiments are not supported on this system..
:Solution: Pulse experiment is not supported on this backend.
Please use a backend that support pulse to run this experiment.

**8013** :Error message: This backend does not support conditional pulses.
:Solution: Conditionals are not supported on this backend.
Please remove the conditional instruction in your program.

**8014** :Error message: reset instructions are not supported.
:Solution: Reset instructions are not supported at this time for this
backend. Please remove the reset instruction.

**8016** :Error message: Pulse {} has too few samples ({} > {}).
:Solution: Please add more samples.

**8017** :Error message: Pulse not a multiple of {} samples.
:Solution: Due to hardware limitations pulses must be a multiple of a
given number of samples.

================ ============================================================


9XXX
====
.. _9xxx:
.. _9XXX:

================ ============================================================
Error codes Messages
Expand Down

0 comments on commit 89a2e58

Please sign in to comment.