Pragma Operations

Pragma operations in qoqo/roqoqo are operations that are not part of the set of operations that can run on all universal quantum computers.

Pragma operations can be used to:

  • Annotate a quantum circuit with additional information that is not necessary for execution (e.g. PragmaGlobalPhase, PragmaStartDecompositionBlock)
  • Apply operations that lead to a repeated execution of a circuit (PragmaRepeatedMeasurement, PragmaSetNumberOfMeasurements)
  • Apply operations that are only available on specific hardware (e.g. PragmaChangeDevice, PragmaSleep)
  • Apply operations that are only available on a simulator (e.g. PragmaSetStateVector, PragmaGetStateVector)
  • Model noise (see also)
  • Model error sources (PragmaOverrotation)

For a full list of available Pragma operations see the API documentation of roqoqo and qoqo.