next up previous contents
Next: About this document ... Up: QCL Charts Previous: Syntax   Contents

Subsections


Error Messages

Typecheck Errors

invalid definition: Invalid length
invalid definition: Length cannot be specified with this type
invalid definition: Quantum variable must be allocated or initialised
invalid definition: Quantum variable can either be allocated or defined as reference, not both

external error: external routine identifier not found

internal error: Invalid binary operator
internal error: Invalid unary operator
internal error: Local call within non subroutine definition
internal error: alloc failed
internal error: can't add symbol identifier to symtab
internal error: can't add symbol to symtab
internal error: no operator operator defined
internal error: uncaught include
internal error: unknown base function
internal error: unknown list function

invalid parameter: Functions may not depend on quantum parameters
invalid parameter: duplicate parameter

invalid type: Can only list symbols
invalid type: Filename must be a string
invalid type: Length operator is only defined for quantum expressions
invalid type: Modulus arguments must be integer
invalid type: Negation: argument must be boolean
invalid type: Non numeric argument to binary arithmetic operator
invalid type: Quantum expression required
invalid type: Unary Minus: argument must be number
invalid type: assignment to quantum variable
invalid type: bit selection not on quantum variable
invalid type: bit selection on on quantum variable
invalid type: can't compare boolean values
invalid type: can't compare quantum expressions
invalid type: cannot input quantum variables
invalid type: comparison operator with unordered type
invalid type: comparison type mismatch
invalid type: concatenation of invalid types
invalid type: constant target register for operator
invalid type: for loop parameters must be integer
invalid type: input prompt is no string
invalid type: local scratch registers can't be used with qureg arguments
invalid type: logical operator with non boolean arguments
invalid type: quantum eigenstates are integers
invalid type: quantum expression as option argument
invalid type: quantum state required
invalid type: quantum variables may not be accessed within functions
invalid type: subrange parameters not integer
invalid type: subscript not integer
invalid type: operator is only defined on quantum expressions

option error: illegal option option
option error: missing argument for option option
option error: option option takes no argument

parameter mismatch: quconst used as non-const argument to identifier
parameter mismatch: unmatching argument number
parameter mismatch: unmatching argument types

illegal scope: Calls not allowed within functions
illegal scope: Global symbol identifier already defined
illegal scope: Local symbol identifier already defined
illegal scope: Procedure call within operator
illegal scope: Quantum Variables may non be defined within functions
illegal scope: Reset of quantum state is not allowed in this scope
illegal scope: Void Registers have to be arguments
illegal scope: error message is not a string
illegal scope: function random is not allowed in this scope
illegal scope: input not allowed in this scope
illegal scope: measurement is not allowed in this scope
illegal scope: operator called within qufunct
illegal scope: return statement outside function
illegal scope: subroutines may only be defined in global scope
illegal scope: Scratch Space may only be allocated within quantum functions

unknown symbol: Invalid Symbol type
unknown symbol: Undefined function identifier
unknown symbol: Undefined procedure or operator identifier
unknown symbol: Unknown local variable identifier
unknown symbol: Unknown local variable identifier
unknown symbol: Unknown variable identifier
unknown symbol: Unknown variable or constant identifier

syntax error: function random takes no arguments
syntax error: invalid number of argument to log
syntax error: missing argument

type mismatch: Invalid initialisation
type mismatch: Invalid initialiser for quantum register reference
type mismatch: Quantum variables cannot be defined as constant
type mismatch: argument is not a number
type mismatch: argument of unordered type
type mismatch: integer required
type mismatch: invalid assignment
type mismatch: invalid log argument
type mismatch: not boolean if condition
type mismatch: not boolean loop condition
type mismatch: ordered type required
type mismatch: return expression doesn't match function type

Evaluation Errors

general error: function didn't return a value

internal error: argument binding failed
internal error: eval is not implemented on class sExpr
internal error: invalid return value

math error: $0^0$ is undefined
math error: division by zero
math error: negative base in non integer real value power
math error: negative exponent in integer power
math error: real logarithm of non positive number
math error: real square root of negative number

range error: invalid quantum subregister
range error: invalid qubit subscript
range error: quantum registers overlap

Execution Errors

internal error: Measurement failed
internal error: argument binding failed
internal error: cannot store constant
internal error: cannot store routine
internal error: cannot store variable
internal error: invalid quantum parameter
internal error: parameter identifier not found
internal error: reset failed
internal error: temporary register not found
internal error: uncaught include
internal error: undefined sTrans object

I/O-error: Can't close filename
I/O-error: Can't open filename for reading
I/O-error: Can't open filename for writing
I/O-error: Error while reading filename
I/O-error: Error writing reading filename

math error: Measured Integer is too long

memory error: can't allocate internal scratch space
memory error: not enough quantum memory
memory error: quantum heap is corrupted
memory error: quantum register of non-positive length
memory error: void or scratch register not empty

option error: illegal option option
option error: missing argument for option option
option error: option option takes no argument

runtime error: infinite for loop
runtime error: quantum arguments overlapping
runtime error: zero increment in for loop
runtime error: operator arguments are of different length

user error: message


next up previous contents
Next: About this document ... Up: QCL Charts Previous: Syntax   Contents

(c) Bernhard Ömer - oemer@tph.tuwien.ac.at - http://tph.tuwien.ac.at/~oemer/