qiskit/releasenotes/notes/0.20/bit-slots-17d6649872da0440....

9 lines
387 B
YAML

---
upgrade:
- |
The classes :class:`~qiskit.circuit.Qubit`, :class:`.Clbit` and :class:`.AncillaQubit` now
have the ``__slots__`` attribute. This is to reduce their memory usage. As a
side effect, they can no longer have arbitrary data attached as attributes
to them. This is very unlikely to have any effect on downstream code other
than performance benefits.