Header menu logo Encodings

OpenQasmOptions Type

Options controlling OpenQASM output.

Record fields

Record Field Description

IncludeHeader

Full Usage: IncludeHeader

Field type: bool

Whether to emit the OPENQASM header and include directive.

Field type: bool

Precision

Full Usage: Precision

Field type: int

Number of decimal places for floating-point angles.

Field type: int

QubitName

Full Usage: QubitName

Field type: string

Name of the qubit register.

Field type: string

Version

Full Usage: Version

Field type: QasmVersion

OpenQASM version (2.0 or 3.0). Default: V3.

Field type: QasmVersion

Type something to start searching.