qiskit/releasenotes/notes/0.9/missing-changelog-d8129ba95...

79 lines
3.3 KiB
YAML

---
upgrade:
- |
The deprecated function ``qiskit.tools.qi.qi.random_unitary_matrix()``
has been removed. You should use the
``qiskit.quantum_info.random.random_unitary()`` function instead.
- |
The deprecated function ``qiskit.tools.qi.qi.random_density_matrix()``
has been removed. You should use the
``qiskit.quantum_info.random.random_density_matrix()`` function
instead.
- |
The deprecated function ``qiskit.tools.qi.qi.purity()`` has been removed.
You should the ``qiskit.quantum_info.purity()`` function instead.
- |
The deprecated ``QuantumCircuit._attach()`` method has been removed. You
should use ``QuantumCircuit.append()`` instead.
- |
The ``qiskit.qasm.Qasm`` method ``get_filename()`` has been removed.
You can use the ``return_filename()`` method instead.
- |
The deprecated ``qiskit.mapper`` module has been removed. The list of
functions and classes with their alternatives are:
* ``qiskit.mapper.CouplingMap``: ``qiskit.transpiler.CouplingMap`` should
be used instead.
* ``qiskit.mapper.Layout``: ``qiskit.transpiler.Layout`` should be used
instead
* ``qiskit.mapper.compiling.euler_angles_1q()``:
``qiskit.quantum_info.synthesis.euler_angles_1q()`` should be used
instead
* ``qiskit.mapper.compiling.two_qubit_kak()``:
``qiskit.quantum_info.synthesis.two_qubit_cnot_decompose()`` should be
used instead.
The deprecated exception classes ``qiskit.mapper.exceptions.CouplingError``
and ``qiskit.mapper.exceptions.LayoutError`` don't have an alternative
since they serve no purpose without a ``qiskit.mapper`` module.
deprecations:
- |
The ``qiskit.pulse.DeviceSpecification`` class is deprecated now. Instead
you should use ``qiskit.pulse.PulseChannelSpec``.
- |
Accessing a ``qiskit.circuit.Qubit``, ``qiskit.circuit.Clbit``, or
``qiskit.circuit.Bit`` class by index is deprecated (for compatibility
with the ``(register, index)`` tuples that these classes replaced).
Instead you should use the ``register`` and ``index`` attributes.
- |
Passing in a bit to the ``qiskit.QuantumCircuit`` method ``append`` as
a tuple ``(register, index)`` is deprecated. Instead bit objects should
be used directly.
- |
Accessing the elements of a ``qiskit.transpiler.Layout`` object with a
tuple ``(register, index)`` is deprecated. Instead a bit object should
be used directly.
- |
The ``qiskit.transpiler.Layout`` constructor method
``qiskit.transpiler.Layout.from_tuplelist()`` is deprecated. Instead the
constructor ``qiskit.transpiler.Layout.from_qubit_list()`` should be used.
- |
The module ``qiskit.pulse.ops`` has been deprecated. All the functions it
provided:
* ``union``
* ``flatten``
* ``shift``
* ``insert``
* ``append``
have equivalent methods available directly on the ``qiskit.pulse.Schedule``
and ``qiskit.pulse.Instruction`` classes. Those methods should be used
instead.
- |
The ``qiskit.qasm.Qasm`` method ``get_tokens()`` is deprecated. Instead
you should use the ``generate_tokens()`` method.
- |
The ``qiskit.qasm.qasmparser.QasmParser`` method ``get_tokens()`` is
deprecated. Instead you should use the ``read_tokens()`` method.