qiskit/releasenotes/notes/0.18/encoding-qasm-6c61415cd9210...

10 lines
450 B
YAML

---
features:
- |
The :class:`~qiskit.circuit.QuantumCircuit` method
:meth:`~qiskit.circuit.QuantumCircuit.qasm` has a new kwarg, ``encoding``,
which can be used to optionally set the character encoding of an output QASM
file generated by the function. This can be set to any valid codec or alias
string from the Python standard library's
`codec module <https://docs.python.org/3/library/codecs.html#standard-encodings>`__.