qiskit/releasenotes/notes/0.15/add-basistranslator-pass-d5...

14 lines
671 B
YAML

---
features:
- |
Two new transpiler passes have been added to :mod:`qiskit.transpiler.passes`
The first, :class:`~qiskit.transpiler.passes.UnrollCustomDefinitions`,
unrolls all instructions in the
circuit according to their :attr:`~qiskit.circuit.Instruction.definition`
property, stopping when reaching either the specified ``basis_gates``
or a set of gates in the provided
:class:`~qiskit.circuit.EquivalenceLibrary`. The second,
:class:`~qiskit.transpiler.passes.BasisTranslator`, uses the set of
translations in the provided :class:`~qiskit.circuit.EquivalenceLibrary` to
re-write circuit instructions in a specified basis.