Keywords

Keywords constitute identifiers reserved by the language parser. As such, they have a specific predefined meaning and cannot be overwritten or used as a general identifier, e.g., as the name of the (qu)bit register.

The table below lists the reserved keywords in cQASM:

Keyword Use
version Version statement
qubit Qubit type
bit Bit type
init Init instruction
reset Reset instruction
measure Measure instruction
wait Wait control instruction
barrier Barrier control instruction
ctrl Control gate modifier
inv Inverse gate modifier
pow Power gate modifier
asm Assembly declaration