Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qiskit/qasm3/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def _lookup_variable(self, variable) -> ast.Identifier:

def build_header(self):
"""Builds a Header"""
version = ast.Version("3")
version = ast.Version("3.0")
includes = self.build_includes()
return ast.Header(version, includes)

Expand Down
6 changes: 6 additions & 0 deletions releasenotes/notes/qasm3-minor-version-2ae00ba8f72a1a53.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
fixes:
- |
The OpenQASM 3 exporters :func:`.qasm3.dump` and :func:`~.qasm3.dumps` will now correctly output
files claiming to be version ``3.0`` rather than the unqualified ``3``, since the OpenQASM 3
project has now standardised on versioning.
Loading