Skip to content
This repository was archived by the owner on Dec 7, 2021. It is now read-only.

Commit c444f16

Browse files
Merge pull request #30 from manoelmarques/stable-0.1.2
New Release 0.1.2
2 parents 1c0bd74 + 6cae8bd commit c444f16

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1692
-404
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ docs/_build/
9595
docs/*.rst
9696
#Allow
9797
!docs/dev_introduction.rst
98+
!docs/qiskit-acqua.rst
9899
!docs/index.rst
99100
!docs/install.rst
100101
!docs/quickstart.rst
@@ -107,7 +108,7 @@ docs/*.rst
107108
!docs/oracles.rst
108109
!docs/extending.rst
109110
!docs/initial_states.rst
110-
!docs/additional.rst
111+
!docs/problem_backend_config.rst
111112

112113
# PyBuilder
113114
target/

CHANGELOG.rst

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,37 @@ The format is based on `Keep a Changelog`_.
1818
`UNRELEASED`_
1919
=============
2020

21+
`0.1.2`_ - 2018-07-12
22+
=====================
23+
24+
Added
25+
-----
26+
27+
- UI Preferences Page including proxies urls, provider, verify.
28+
- Add help menu with link to documentation.
29+
- Add num_iterations param to grover.
30+
- Graph partition ising model added.
31+
- F2 finite field functions and find_Z2_symmetries function.
32+
- Added packages preferences array for client custom pluggable packages.
33+
34+
Changed
35+
-------
36+
37+
- Clean up use_basis_gates options.
38+
- Change QISKit registering for QISKit 0.5.5.
39+
40+
Fixed
41+
-----
42+
43+
- GUI - Windows: new line appears when text view dismissed.
44+
- Update test_grover to account for cases where the groundtruth info is missing.
45+
- Qconfig discovery - Fix permission denied error on list folders.
46+
- UI Fix Popup cut/copy/paste/select all behavior in mac/windows/linux.
47+
- Fix typo grouped paulis.
48+
- Fix numpy argmax usage on potentially complex state vector.
49+
- Fix/use list for paulis and update helper function of ising model.
50+
51+
2152
`0.1.1`_ - 2018-06-13
2253
=====================
2354

@@ -37,7 +68,8 @@ Changed
3768
- Updated qiskit minimum version in setup.py.
3869
- Fixed links in readme.me.
3970

40-
.. _UNRELEASED: https://github.com/QISKit/qiskit-acqua/compare/0.1.1...HEAD
71+
.. _UNRELEASED: https://github.com/QISKit/qiskit-acqua/compare/0.1.2...HEAD
72+
.. _0.1.2: https://github.com/QISKit/qiskit-acqua/compare/0.1.1...0.1.2
4173
.. _0.1.1: https://github.com/QISKit/qiskit-acqua/compare/0.1.0...0.1.1
4274

4375
.. _Keep a Changelog: http://keepachangelog.com/en/1.0.0/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ python qiskit_acqua/ui/browser
131131

132132
### Programming
133133

134-
Any algorithm in QISKit ACQUA can be run programmatically too. The [examples](./examples) folder contains numerous
134+
Any algorithm in QISKit ACQUA can be run programmatically too. The acqua folder in the [qiskit-acqua-tutorials](https://github.com/QISKit/qiskit-acqua-tutorials/tree/master/acqua) contains numerous
135135
samples that demonstrate how to do this. Here you will see there is a `run_algorithm` method used, which takes either
136136
the JSON algorithm input or an equivalent Python dictionary and optional `AlgorithmInput` object for the algorithm.
137137
There is also a `run_algorithm_to_json` that simply takes the input and saves it to JSON in a self-contained form,

docs/ACQUAArchitecture.png

-968 KB
Binary file not shown.

docs/CONTRIBUTORS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ This work is the result of the efforts of many people. Many thanks to
55
everyone involved in the project:
66

77
- Panagiotis Barkoutsos
8+
- Sergey Bravyi
89
- Chun-Fu (Richard) Chen
910
- Antonio Córcoles-Gonzalez
1011
- Jay Gambetta

docs/algorithms.rst

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ Additionally, VQE can be configured with the following parameters:
6565

6666
.. code:: python
6767
68-
operator_mode : "matrix" | "paulis" | "group_paulis"
68+
operator_mode : "matrix" | "paulis" | "grouped_paulis"
6969
70-
If no value for ``operator_mode`` ia specified, the default is ``"matrix"``.
70+
If no value for ``operator_mode`` ia specified, the default is ``"matrix"``.
7171

7272
- The initial point for the search of the minimum eigenvalue:
7373

@@ -111,25 +111,25 @@ Dynamics can be configured with the following parameter settings:
111111
- Evolution time:
112112

113113
.. code:: python
114-
114+
115115
evo_time : float
116116
117117
A number is expected. The minimum value is ``0.0``. The default value is ``1.0``.
118118

119119
- The evolution mode of the computation:
120120

121-
.. code:: python
121+
.. code:: python
122122
123123
evo_mode = "matrix" | "circuit"
124124
125125
Two ``string`` values are permitted: ``"matrix"`` or ``"circuit"``, with ``"circuit"`` being the default.
126126

127-
- The number of time slices:
127+
- The number of time slices:
128128

129129
.. code:: python
130130
131131
num_time_slices = 0 | 1 | ...
132-
132+
133133
This has to be a non-negative ``int`` value. The default is ``1``.
134134

135135
- Paulis grouping mode:
@@ -141,7 +141,7 @@ Dynamics can be configured with the following parameter settings:
141141
Two ``string`` values are permitted: ``"default"`` or ``"random"``, with ``"default"`` being the default and indicating
142142
that the paulis should be grouped.
143143

144-
- The expansion mode:
144+
- The expansion mode:
145145

146146
.. code:: python
147147
@@ -191,7 +191,7 @@ state <initial_states.html>`__ and an `IQFT <./iqfts.html>`__.
191191

192192
QPE is also configured with the following parameter settings:
193193

194-
- The number of time slices:
194+
- The number of time slices:
195195

196196
.. code:: python
197197
@@ -227,7 +227,7 @@ QPE is also configured with the following parameter settings:
227227

228228
- The number of ancillae:
229229

230-
.. code:: python
230+
.. code:: python
231231
232232
num_ancillae = 1 | 2 | ...
233233
@@ -248,7 +248,7 @@ Iterative Quantum Phase Estimation (IQPE)
248248

249249
IQPE, as its name
250250
suggests, iteratively computes the phase so as to require less qubits.
251-
It takes in the same set of parameters as :ref:`Quantum Phase Estimation (QPE)`, except for the number of
251+
It takes in the same set of parameters as `QPE <#quantum-phase-estimation-qpe>`__, except for the number of
252252
ancillary qubits ``num_ancillae``, which is replaced by
253253
``num_iterations`` (a positive ``int``, also defaulted to ``1``), and for the fact that an `IQFT <./iqfts.html>`__ is not
254254
used for IQPE.
@@ -330,15 +330,14 @@ the category of what is called *supervised learning*, consisting of a
330330
obtained) and a *test or classification phase* (where new labeless data
331331
is classified according to the solution found in the training phase).
332332

333-
SVM Q Kernel can be configured with the following parameter:
333+
SVM Q Kernel can be configured with a Boolean parameter, indicating
334+
whether or not to print additional information when the algorithm is running:
334335

335-
- A Boolean indicating whether or not to print additional information when the algorithm is running:
336+
.. code:: python
336337
337-
.. code:: python
338+
print_info : bool
338339
339-
print_info : bool
340-
341-
A Boolean value is expected. The default is ``False``.
340+
The default is ``False``.
342341

343342
.. topic:: Declarative Name
344343

@@ -405,15 +404,13 @@ Exact Eigensolver
405404

406405
Exact Eigensolver computes up to the first ``k`` eigenvalues of a complex square matrix of dimension ``n x n``,
407406
with ``k`` :math:`leq` ``n``.
408-
It can be configured with the following parameter:
409-
410-
- The number of eigenvalues to compute:
407+
It can be configured with an integer parameter indicating the number of eigenvalues to compute:
411408

412-
.. code:: python
409+
.. code:: python
413410
414-
k = 1 | 2 | ... | n
411+
k = 1 | 2 | ... | n
415412
416-
An ``int`` value ``k`` in the range :math:`[1,n]` is expected. The default is ``1``.
413+
Specifically, the value of this parameter must be an ``int`` value ``k`` in the range :math:`[1,n]`. The default is ``1``.
417414

418415
.. topic:: Declarative Name
419416

@@ -480,15 +477,14 @@ Support Vector Machine Radial Basis Function Kernel (SVM RBF Kernel)
480477

481478
This algorithm uses a classical approach to experiment with feature map classification
482479
problems.
483-
SVM RBF Kernel can be configured with the following parameter:
484-
485-
- A Boolean indicating whether or not to print additional information when the algorithm is running:
480+
SVM RBF Kernel can be configured with a Boolean parameter,
481+
indicating whether or not to print additional information when the algorithm is running:
486482

487-
.. code:: python
483+
.. code:: python
488484
489-
print_info : bool
485+
print_info : bool
490486
491-
A Boolean value is expected. The default is ``False``.
487+
The default value for this parameter is ``False``.
492488

493489
.. topic:: Declarative Name
494490

docs/index.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Table of Contents
2525
Inverse Quantum Fourier Transforms <iqfts>
2626
Oracles <oracles>
2727
Extending QISKit ACQUA <extending>
28-
Additional Configuration <additional>
28+
Problem and Backend Configuration <problem_backend_config>
2929
Getting Started <quickstart>
3030
Developer Documentation <dev_introduction>
3131
SDK Reference <_autodoc/qiskit_acqua>
@@ -47,6 +47,4 @@ Main Modules
4747

4848
Authors (alphabetical)
4949
======================
50-
Panagiotis Barkoutsos, Chun-Fu (Richard) Chen, Antonio Córcoles-Gonzalez, Jay Gambetta, Shaohan Hu, Takashi Imamichi,
51-
Tal Kachman, Peng Liu, Manoel Marques, Antonio Mezzacapo, Nikolaj Moll, Giacomo Nannicini, Marco Pistoia, Julia Rice,
52-
Raymond Harry Putra Rudy, Ivano Tavernelli, Stephen Wood
50+
Panagiotis Barkoutsos, Sergey Bravyi, Chun-Fu (Richard) Chen, Antonio Córcoles-Gonzalez, Jay Gambetta, Shaohan Hu, Takashi Imamichi, Tal Kachman, Peng Liu, Manoel Marques, Antonio Mezzacapo, Nikolaj Moll, Giacomo Nannicini, Marco Pistoia, Julia Rice, Raymond Harry Putra Rudy, Ivano Tavernelli, Stephen Wood

docs/install.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Running an Algorithm
4141

4242
Now that you have installed QISKit ACQUA, you can run an algorithm by invoking it with the appropriate input.
4343
The input to a QISKit ACQUA algorithm is expected to be in `JSON <http://json.org>`__ format.
44-
This can be done programmaticall, via the Graphical User Interface (GUI) or from the command line. In addition to the input itself,
44+
This can be done programmatically, via the Graphical User Interface (GUI) or from the command line. In addition to the input itself,
4545
the JSON file encodes the algorithm that QISKit ACQUA will invoke on that input.
4646
One way to generate the JSON input is by
4747
serializing the input to QISKit ACQUA when executing one of the applications running on top of QISKit ACQUA,
@@ -51,7 +51,7 @@ GUI
5151
~~~
5252
The QISKit ACQUA GUI allows you to load and save a JSON file to run an algorithm
5353
as well as create a new one or edit an existing one. So, for example,
54-
using the UI, you can alter the parameters of an algorithm and/or its dependent
54+
using the UI, you can alter the parameters of an algorithm and/or its dependent
5555
objects to see how the changes affect the outcome. pip installs a
5656
small script that allows you to start the GUI from the command line, as follows:
5757

@@ -70,7 +70,7 @@ from the root folder of the ``qiskit-acqua`` repository clone.
7070

7171
Configuring an experiment that involves both quantum-computing and domain-specific parameters
7272
may look like a challenging activity, which requires specialized knowledge on both the specific
73-
domain in which the experiment runs and quantum computing itslf. QISKit ACQUA simplifies the
73+
domain in which the experiment runs and quantum computing itself. QISKit ACQUA simplifies the
7474
configuration of any run in two ways:
7575

7676
1. Defaults are provided for each parameter. Such defaults have been validated to be the best choices in most cases.
@@ -81,7 +81,7 @@ Command Line
8181
~~~~~~~~~~~~
8282

8383
The command line tool will run an algorithm from the supplied JSON file.
84-
Run without any arguments, it will print help ibformation. pip installs a
84+
Run without any arguments, it will print help information. pip installs a
8585
small script, which can be invoked with a JSON algorithm input file from the command line as follows:
8686

8787
.. code:: sh
@@ -103,7 +103,7 @@ Browser
103103

104104
As QISKit ACQUA is extensible with pluggable components, we have provided
105105
a documentation GUI that shows all the pluggable components along with the schema for
106-
their parameters. ``pip`` installsa small script to invoke the
106+
their parameters. ``pip`` installs a small script to invoke the
107107
browser GUI as follows:
108108

109109
.. code:: sh
@@ -124,7 +124,7 @@ from the root folder of the
124124
Programming
125125
~~~~~~~~~~~
126126

127-
Any algoirithm in QISJit ACQUA can be run programmatically too. The
127+
Any algorithm in QISKit ACQUA can be run programmatically too. The
128128
``examples`` folder contains numerous cases that explain how to do this. Here you will
129129
see there is a ``run_algorithm`` method used, which takes either the JSON algorithm input
130130
or an equivalent Python dictionary and optional ``AlgorithmInput`` object

docs/optimizers.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ among all possible solutions.
1414

1515
.. topic:: Extending the Optimizer Library
1616
Consistent with its unique design and architecture, QISKit ACQUA has a modular and
17-
extensible architecture. Algorithms and their supporting objects, such as optimizers for quantum vational algorithms,
17+
extensible architecture. Algorithms and their supporting objects, such as optimizers for quantum variational algorithms,
1818
are pluggable modules in QISKit ACQUA. This was done in order to encourage researchers and developers interested in
1919
quantum algorithms to extend the QISKit ACQUA framework with their novel research contributions.
2020
New optimizers for quantum variational algorithms should be installed in the ``qiskit_acqua/utils/optimizers`` folder and derive from the
@@ -72,7 +72,7 @@ The following parameters are supported:
7272
7373
tol : float
7474
75-
This parameter is optional. If specified, the value of this parameter must be a number, otherwise, it is ``Nonw``.
75+
This parameter is optional. If specified, the value of this parameter must be a number, otherwise, it is ``None``.
7676
The default is ``None``.
7777

7878
.. topic:: Declarative Name
@@ -127,8 +127,8 @@ Limited-memory Broyden-Fletcher-Goldfarb-Shanno Bound (L-BFGS-B)
127127
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
128128

129129
The target goal of L-BFGS-B is to minimize the value of a differentiable scalar function :math:`f`.
130-
This optimizer is a *quasi-Newton method*, meaning tha, in contrast to *Newtons's method*, it
131-
does not require :math:f's *Hessian* (the matrix of :math:`f`'s second derivatives)
130+
This optimizer is a *quasi-Newton method*, meaning that, in contrast to *Newtons's method*, it
131+
does not require :math:`f`'s *Hessian* (the matrix of :math:`f`'s second derivatives)
132132
when attempting to compute :math:`f`'s minimum value.
133133
Like BFGS, L-BFGS is an iterative method for solving unconstrained, non-linear optimization problems, but approximates
134134
BFGS using a limited amount of computer memory.
@@ -247,7 +247,7 @@ The following parameters are supported:
247247
Parallel Broyden-Fletcher-Goldfarb-Shann (P-BFGS)
248248
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
249249

250-
P-BFGS is a parallellized version of :ref:`Limited-memory Broyden-Fletcher-Goldfarb-Shanno Bound (L-BFGS-B)`,
250+
P-BFGS is a parallellized version of `L-BFGS-B <#limited-memory-broyden-fletcher-goldfarb-shanno-bound-l-bfgs-b>`__,
251251
with which it shares the same parameters.
252252
P-BFGS can be useful when the target hardware is a quantum simulator running on a classical
253253
machine. This allows the multiple processes to use simulation to
@@ -385,7 +385,7 @@ The following parameters are supported:
385385
386386
tol : number
387387
388-
This parameter is optional. If specified, the value of this parameter must be a number, otherwise, it is ``Nonw``.
388+
This parameter is optional. If specified, the value of this parameter must be a number, otherwise, it is ``None``.
389389
The default is ``None``.
390390

391391
.. topic:: Declarative Name
@@ -533,7 +533,7 @@ The following parameters are supported:
533533
534534
tol : number
535535
536-
This parameter is optional. If specified, the value of this parameter must be a number, otherwise, it is ``Nonw``.
536+
This parameter is optional. If specified, the value of this parameter must be a number, otherwise, it is ``None``.
537537
The default is ``None``
538538

539539
.. topic:: Declarative Name

0 commit comments

Comments
 (0)