-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Sphinx-execution & other minor circuit updates (#5269)
* minor updates to the circuit * fix jupyter example * Update qiskit/circuit/quantumcircuit.py Co-authored-by: Matthew Treinish <[email protected]> * add reno * fix link to qcstyle * Update releasenotes/notes/remove-deprecated-circuit-methods-afc22d0ba59ac853.yaml Co-authored-by: Matthew Treinish <[email protected]> * fix indent * Update releasenotes/notes/remove-deprecated-circuit-methods-afc22d0ba59ac853.yaml Co-authored-by: Matthew Treinish <[email protected]> * revert changes on qcstyle doc Co-authored-by: Matthew Treinish <[email protected]>
- Loading branch information
Showing
2 changed files
with
55 additions
and
52 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
11 changes: 11 additions & 0 deletions
11
releasenotes/notes/remove-deprecated-circuit-methods-afc22d0ba59ac853.yaml
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 @@ | ||
--- | ||
upgrade: | ||
- | | ||
The previously deprecated ``mirror()`` method for :class:`qiskit.circuit.QuantumCircuit` has been removed. | ||
It was deprecated in the 0.15.0 release. The :meth:`qiskit.circuit.QuantumCircuit.reverse_ops` method | ||
should be used instead since mirroring could be confused with swapping the output qubits of the circuit. | ||
The ``reverse_ops()`` method only reverses the order of gates that are applied instead of mirroring. | ||
- | | ||
The previously deprecated support for a float ``scale`` value being the positional first argument in | ||
:meth:`qiskit.circuit.QuantumCircuit.draw` has been removed. It was deprecated in the 0.12.0 release. | ||
Instead to set the scale you can use the ``scale`` as a keyword argument (ie ``scale=0.75``). |