Skip to content

Commit

Permalink
[Stable] Prepare 0.4.2 release (#727)
Browse files Browse the repository at this point in the history
* Revert "fix XXPlusYYGate (#694)"

This reverts commit 9167a64.

* bump min terra version to 0.21 (#695)

Co-authored-by: Manoel Marques <Manoel.Marques@ibm.com>

* Prepare 0.4.2 release

* Add reno note

Co-authored-by: Kevin J. Sung <kevjsung@umich.edu>
  • Loading branch information
manoelmarques and kevinsung authored Jul 1, 2022
1 parent d5edc98 commit 1631116
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion qiskit_nature/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.1
0.4.2
2 changes: 1 addition & 1 deletion qiskit_nature/circuit/library/bogoliubov_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def _bogoliubov_transform_num_conserving_jw( # pylint: disable=invalid-name
for givens_mat, (i, j) in reversed(right_rotations):
theta = np.arccos(np.real(givens_mat[0, 0]))
phi = np.angle(givens_mat[0, 1])
yield XXPlusYYGate(2 * theta, -phi - np.pi / 2), (register[j], register[i])
yield XXPlusYYGate(2 * theta, phi - np.pi / 2), (register[j], register[i])


def _bogoliubov_transform_general_jw( # pylint: disable=invalid-name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _prepare_slater_determinant_jw(
phi = np.angle(givens_mat[0, 1])
# add operations
decomposition.append(
(XXPlusYYGate(2 * theta, -phi - np.pi / 2), (register[j], register[j - 1]))
(XXPlusYYGate(2 * theta, phi - np.pi / 2), (register[j], register[j - 1]))
)
# update matrix
current_matrix = apply_matrix_to_slices(
Expand Down
2 changes: 1 addition & 1 deletion qiskit_nature/utils/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def fermionic_gaussian_decomposition_jw( # pylint: disable=invalid-name
phi = np.angle(givens_mat[0, 1])
# add operations
decomposition.append(
(XXPlusYYGate(2 * theta, -phi - np.pi / 2), (register[j], register[j + 1]))
(XXPlusYYGate(2 * theta, phi - np.pi / 2), (register[j], register[j + 1]))
)
# update matrix
current_matrix = apply_matrix_to_slices(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
fixes:
- |
Reverts a temporary change to XXPlusYYGate that has been fixed in Qiskit Terra 0.21.
Pins Qiskit-Terra to >= 0.21
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
qiskit-terra>=0.20.0
qiskit-terra>=0.21.0
scipy>=1.4
numpy>=1.17
psutil>=5
Expand Down

0 comments on commit 1631116

Please sign in to comment.