forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-allow non-standard includes in OpenQASM 3 exporter
Swapping the behaviour of the exporter to error on unknown includes was a mistake, and a breaking change from previous versions of the OpenQASM 3 exporter, since the `basis_gates` argument can be used to emulate the expected behaviour of this option, even though the previously documented behaviour was never actually fulfilled. This restores the previous non-erroring behaviour, and corrects the documentation to note how the ``includes`` argument should be used in the near term.
- Loading branch information
1 parent
c655acb
commit e9f2f7c
Showing
3 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
fixes: | ||
- | | ||
The OpenQASM 3 exporter has restored its behavior of accepting non-standard-library include | ||
files in the ``includes`` argument to :func:`.qasm3.dump`, :func:`~.qasm3.dumps`, and | ||
:class:`~.qasm3.Exporter`. These will insert a suitable ``include`` statement into the output | ||
as before, and the exporter remains unaware of the intended gates in that include file; you | ||
should pass the gates you expect it to define in the ``basis_gates`` argument to the same functions. | ||
We expect to improve the export mechanism against non-standard include files in a future release | ||
of Qiskit. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters