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

Commit 997a378

Browse files
Merge pull request #710 from manoelmarques/stable
[Stable] Release 0.6.1
2 parents 15b054d + 908ba4b commit 997a378

File tree

14 files changed

+27
-16
lines changed

14 files changed

+27
-16
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
# that they have been altered from the originals.
1212

1313
notifications:
14-
on_success: change
15-
on_failure: always
14+
email: false
1615

1716
cache: pip
1817
os: linux

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,17 @@ Changelog](http://keepachangelog.com/en/1.0.0/).
1515
> - **Fixed**: for any bug fixes.
1616
> - **Security**: in case of vulnerabilities.
1717
18-
[UNRELEASED](https://github.com/Qiskit/qiskit-aqua/compare/0.6.0...HEAD)
18+
[UNRELEASED](https://github.com/Qiskit/qiskit-aqua/compare/0.6.1...HEAD)
1919
========================================================================
2020

21+
[0.6.1](https://github.com/Qiskit/qiskit-aqua/compare/0.6.0...0.6.1) - 2019-10-16
22+
=================================================================================
23+
24+
Changed
25+
-------
26+
27+
- Remove terra cap from stable branch. (#709)
28+
2129
[0.6.0](https://github.com/Qiskit/qiskit-aqua/compare/0.5.5...0.6.0) - 2019-08-22
2230
=================================================================================
2331

qiskit/aqua/VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.6.0
1+
0.6.1

qiskit/aqua/algorithms/adaptive/qgan/qgan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def __init__(self, data, bounds=None, num_qubits=None, batch_size=500, num_epoch
130130
self._num_qubits = num_qubits
131131
if np.ndim(data) > 1:
132132
if self._num_qubits is None:
133-
self._num_qubits = np.ones[len(data[0])]*3
133+
self._num_qubits = np.ones[len(data[0])]*3 # pylint: disable=unsubscriptable-object
134134
self._prob_data = np.zeros(int(np.prod(np.power(np.ones(len(self._data[0]))*2, self._num_qubits))))
135135
else:
136136
if self._num_qubits is None:

qiskit/aqua/components/multiclass_extensions/all_pairs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def test(self, x, y):
8686
B = y
8787
_l = len(A)
8888
diff = np.sum(A != B)
89-
logger.debug("%d out of %d are wrong" % (diff, _l))
89+
logger.debug("%d out of %d are wrong", diff, _l)
9090
return 1. - (diff * 1.0 / _l)
9191

9292
def predict(self, x):

qiskit/aqua/components/multiclass_extensions/error_correcting_code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ def train(self, x, y):
7171
classes_index = dict((c, i) for i, c in enumerate(self.classes))
7272
Y = np.array([self.codebook[classes_index[y[i]]]
7373
for i in range(x.shape[0])], dtype=np.int)
74-
logger.info("Require {} estimators.".format(Y.shape[1]))
75-
for i in range(Y.shape[1]):
74+
logger.info("Require {} estimators.".format(Y.shape[1])) # pylint: disable=unsubscriptable-object
75+
for i in range(Y.shape[1]): # pylint: disable=unsubscriptable-object
7676
y_bit = Y[:, i]
7777
unique_y = np.unique(y_bit)
7878
if len(unique_y) == 1:
@@ -96,7 +96,7 @@ def test(self, x, y):
9696
B = y
9797
_l = len(A)
9898
diff = np.sum(A != B)
99-
logger.debug("%d out of %d are wrong" % (diff, _l))
99+
logger.debug("%d out of %d are wrong", diff, _l)
100100
return 1 - (diff * 1.0 / _l)
101101

102102
def predict(self, x):

qiskit/aqua/components/multiclass_extensions/one_against_rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def test(self, x, y):
7777
B = y
7878
_l = len(A)
7979
diff = np.sum(A != B)
80-
logger.debug("%d out of %d are wrong" % (diff, _l))
80+
logger.debug("%d out of %d are wrong", diff, _l)
8181
return 1 - (diff * 1.0 / _l)
8282

8383
def predict(self, x):

qiskit/aqua/operators/tpb_grouped_weighted_pauli_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,5 +210,5 @@ def multiply(self, other):
210210
TPBGroupedWeightedPauliOperator: the multiplied operator
211211
"""
212212
ret_op = super().multiply(other)
213-
ret_op = ret_op._grouping_func(ret_op, **self._kwargs)
213+
ret_op = ret_op._grouping_func(ret_op, **self._kwargs) # pylint: disable=no-member
214214
return ret_op

qiskit/aqua/utils/random_matrix_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def limit_entries(mat, n=5, sparsity=None):
286286
if sparsity is not None:
287287
n = int(sparsity*mat.shape[0]*mat.shape[1])
288288
entries = entries[:n]
289-
row, col, data = np.array(entries).T
289+
row, col, data = np.array(entries).T # pylint: disable=unpacking-non-sequence
290290
return scipy.sparse.csr_matrix(
291291
(data, (row.real.astype(int), col.real.astype(int))))
292292

qiskit/chemistry/aqua_extensions/algorithms/q_equation_of_motion/q_equation_of_motion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ def _get_result(op):
371371
v_mat[mu][nu] = v_mean if v_mean != 0.0 else v_mat[mu][nu]
372372

373373
if self._is_eom_matrix_symmetric:
374+
# pylint: disable=unsubscriptable-object
374375
q_mat = q_mat + q_mat.T - np.identity(q_mat.shape[0]) * q_mat
375376
w_mat = w_mat + w_mat.T - np.identity(w_mat.shape[0]) * w_mat
376377
m_mat = m_mat + m_mat.T - np.identity(m_mat.shape[0]) * m_mat

0 commit comments

Comments
 (0)