Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare release notes for Qiskit Terra 0.19 #7329

Merged
merged 40 commits into from
Dec 6, 2021
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
6661347
Move 0.19 release notes into subdirectory
jakelishman Nov 30, 2021
e614ee9
Add missing objects to imports and API docs
jakelishman Nov 30, 2021
a810af8
Update incorrect deprecation notice
jakelishman Nov 30, 2021
597de6c
Reorganise pulse documentation to avoid duplication
jakelishman Nov 30, 2021
43af942
Reformat 0.19 release notes
jakelishman Nov 30, 2021
5c898b5
Fix typo
jakelishman Dec 1, 2021
aa157bc
Clarify ExactReciprocal documentation
jakelishman Dec 1, 2021
61775a9
Merge remote-tracking branch 'ibm/main' into fix/release-notes-0.19
jakelishman Dec 1, 2021
abc11e1
Fix docs warning
jakelishman Dec 1, 2021
d950c4f
Merge remote-tracking branch 'ibm/main' into fix/release-notes-0.19
jakelishman Dec 1, 2021
c92f593
Move backend V2 note
jakelishman Dec 1, 2021
dee102b
Merge remote-tracking branch 'ibm/main' into fix/release-notes-0.19
jakelishman Dec 1, 2021
88709f2
Move RZX calibration release note
jakelishman Dec 1, 2021
2c93a9a
Revert restrictions filetypes in text drawer
jakelishman Dec 2, 2021
3584812
Remove release notes already included in 0.18 backports
jakelishman Dec 2, 2021
8c463c6
Correct future warning in pauli_basis
jakelishman Dec 2, 2021
2114e3e
Rewrite release notes
jakelishman Dec 2, 2021
fefe0e9
Add 0.19 release prelude
jakelishman Dec 2, 2021
26afcb6
Remove unused import
jakelishman Dec 2, 2021
25a29fd
Updated grover reno
javabster Dec 2, 2021
d182946
Update releasenotes/notes/0.19/qaoa-parameters-49e4524ed2d3e875.yaml
mtreinish Dec 2, 2021
905141d
Update release notes
jakelishman Dec 2, 2021
4b42174
Merge remote-tracking branch 'ibm/main' into fix/release-notes-0.19
jakelishman Dec 2, 2021
b6a855b
Move another merged release note
jakelishman Dec 2, 2021
b0ecad7
spelling
1ucian0 Dec 3, 2021
e624bd6
Fix typos in documentation
jakelishman Dec 3, 2021
758274f
Merge remote-tracking branch 'ibm/main' into fix/release-notes-0.19
jakelishman Dec 3, 2021
0870337
Reformat new release notes
jakelishman Dec 3, 2021
714e45c
Update QASM3 note with new features
jakelishman Dec 3, 2021
b2306e8
Add BaseReadoutMitigator to documentation
jakelishman Dec 3, 2021
1423ebf
Updates from Luciano
jakelishman Dec 6, 2021
baabcec
Merge remote-tracking branch 'ibm/main' into fix/release-notes-0.19
jakelishman Dec 6, 2021
8beb883
Update BasisTranslator release note
jakelishman Dec 6, 2021
afd0ce6
Add an invisible code block
jakelishman Dec 6, 2021
a40c877
Rewrite PulseGate pass release note
jakelishman Dec 6, 2021
33ffd86
Update release notes
jakelishman Dec 6, 2021
b1ca250
Merge remote-tracking branch 'ibm/main' into fix/release-notes-0.19
jakelishman Dec 6, 2021
153396f
Remove note about type hints
jakelishman Dec 6, 2021
925a9c3
Fix PulseGate typos
jakelishman Dec 6, 2021
bb6f3a9
Revert default import of rzx_templates
jakelishman Dec 6, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/apidocs/synthesis.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _qiskit-synthesis:

.. automodule:: qiskit.synthesis
:no-members:
:no-inherited-members:
:no-special-members:
6 changes: 6 additions & 0 deletions docs/apidocs/synthesis_aqc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _qiskit-transpiler-synthesis-aqc:

.. automodule:: qiskit.transpiler.synthesis.aqc
:no-members:
:no-inherited-members:
:no-special-members:
2 changes: 2 additions & 0 deletions docs/apidocs/terra.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Qiskit Terra API Reference
providers_models
pulse
scheduler
synthesis
qasm
qobj
qpy
Expand All @@ -32,6 +33,7 @@ Qiskit Terra API Reference
transpiler_passes
transpiler_preset
transpiler_plugins
transpiler_builtin_plugins
utils
utils_mitigation
opflow
Expand Down
10 changes: 10 additions & 0 deletions docs/apidocs/transpiler_builtin_plugins.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. _qiskit-transpiler-builtin-plugins:

=====================================
Built-in Transpiler Synthesis Plugins
=====================================

.. toctree::
:maxdepth: 2

synthesis_aqc
mtreinish marked this conversation as resolved.
Show resolved Hide resolved
10 changes: 10 additions & 0 deletions qiskit/circuit/library/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,15 @@

QuadraticForm

Other arithmetic functions
--------------------------

.. autosummary::
:toctree: ../stubs/
:template: autosummary/class_no_inherited_members.rst

ExactReciprocal

Amplitude Functions
===================

Expand Down Expand Up @@ -393,6 +402,7 @@
PiecewiseChebyshev,
HRSCumulativeMultiplier,
RGQFTMultiplier,
ExactReciprocal,
)

from .n_local import (
Expand Down
1 change: 1 addition & 0 deletions qiskit/circuit/library/arithmetic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@
from .adders import VBERippleCarryAdder, CDKMRippleCarryAdder, DraperQFTAdder
from .piecewise_chebyshev import PiecewiseChebyshev
from .multipliers import HRSCumulativeMultiplier, RGQFTMultiplier
from .exact_reciprocal import ExactReciprocal
19 changes: 11 additions & 8 deletions qiskit/circuit/library/arithmetic/exact_reciprocal.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,18 @@ def __init__(
r"""
Args:
num_state_qubits: The number of qubits representing the value to invert.
scaling: Scaling factor of the reciprocal function, i.e. to compute
::math:: `scaling / x`.
neg_vals: Whether x might represent negative values. In this case the first qubit is
the sign, with |1> for negative and |0> for positive. For the negative case it is
assumed that the remaining string represents 1 - x. This is because
::math:: `e^{-2 \pi i x} = e^{2 \pi i (1 - x)}` for ::math:: `x \in [0,1)`.
scaling: Scaling factor :math:`s` of the reciprocal function, i.e. to compute
:math:`s / x`.
neg_vals: Whether :math:`x` might represent negative values. In this case the first
qubit is the sign, with :math:`|1\rangle` for negative and :math:`|0\rangle` for
positive. For the negative case it is assumed that the remaining string represents
:math:`1 - x`. This is because :math:`e^{-2 \pi i x} = e^{2 \pi i (1 - x)}` for
:math:`x \in [0,1)`.
name: The name of the object.
Note:
It is assumed that the binary string x represents a number < 1.

.. note::

It is assumed that the binary string :math:`x` represents a number < 1.
"""
qr_state = QuantumRegister(num_state_qubits, "state")
qr_flag = QuantumRegister(1, "flag")
Expand Down
6 changes: 2 additions & 4 deletions qiskit/circuit/library/basis_change/qft.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,9 @@ def num_qubits(self) -> int:

Returns:
The number of qubits in the circuit.

Note:
This method needs to be overwritten to allow adding the setter for num_qubits while
still complying to pylint.
"""
# This method needs to be overwritten to allow adding the setter for num_qubits while still
# complying to pylint.
return super().num_qubits

@num_qubits.setter
Expand Down
3 changes: 2 additions & 1 deletion qiskit/extensions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

UnitaryGate
HamiltonianGate
SingleQubitUnitary

Simulator Extensions
====================
Expand All @@ -47,7 +48,7 @@
from qiskit.circuit.library.standard_gates import *
from qiskit.circuit.barrier import Barrier

from .quantum_initializer.initializer import Initialize
from .quantum_initializer import Initialize, SingleQubitUnitary
from .unitary import UnitaryGate
from .hamiltonian_gate import HamiltonianGate
from .simulator import Snapshot
1 change: 1 addition & 0 deletions qiskit/extensions/quantum_initializer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
from .diagonal import DiagonalGate
from .uc import UCGate
from .isometry import Isometry
from .initializer import Initialize
4 changes: 3 additions & 1 deletion qiskit/extensions/quantum_initializer/initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
from qiskit.circuit.library.standard_gates.ry import RYGate
from qiskit.circuit.library.standard_gates.rz import RZGate
from qiskit.circuit.reset import Reset
from qiskit.quantum_info import Statevector

_EPS = 1e-10 # global variable used to chop very small numbers to zero

Expand Down Expand Up @@ -61,6 +60,9 @@ def __init__(self, params, num_qubits=None):
and params is 3. This allows qubits 0 and 1 to be initialized to `|1>` and the
remaining 3 qubits to be initialized to `|0>`.
"""
# pylint: disable=cyclic-import
from qiskit.quantum_info import Statevector

if isinstance(params, Statevector):
params = params.data

Expand Down
Loading