Creates an OpenQASMVersion instance.
Optional
major: OpenQASMMajorVersionThe OpenQASM major version. (optional)
Optional
minor: numberThe OpenQASM minor version (optional)
Returns whether the version is 2.x
Returns whether the version is 3.x
Returns the version as a formatted string.
Class representing the OpenQASM version.