Skip to content

Commit

Permalink
Merge branch 'master' into vectorize-sparse
Browse files Browse the repository at this point in the history
  • Loading branch information
josh146 committed Aug 29, 2021
2 parents 96959f2 + 65320c9 commit 5b08e68
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 70 deletions.
7 changes: 5 additions & 2 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ and requirements-ci.txt (unpinned). This latter would be used by the CI.

<h3>Bug fixes</h3>

* Remove `QFT` from possible operations in `default.qubit` and `default.mixed`.
[(#1600)](https://github.com/PennyLaneAI/pennylane/pull/1600)

* Fix bug when computing expectations of Hamiltonians using TensorFlow.
[(#1586)](https://github.com/PennyLaneAI/pennylane/pull/1586)

Expand All @@ -371,8 +374,8 @@ and requirements-ci.txt (unpinned). This latter would be used by the CI.
This release contains contributions from (in alphabetical order):

Vishnu Ajith, Akash Narayanan B, Thomas Bromley, Tanya Garg, Josh Izaac, Prateek Jain, Christina Lee,
Johannes Jakob Meyer, Esteban Payares, Pratul Saini, Maria Schuld, Arshpreet Singh, Ingrid Strandberg,
Slimane Thabet, David Wierichs, Vincent Wong.
Johannes Jakob Meyer, Romain Moyard, Esteban Payares, Pratul Saini, Maria Schuld, Arshpreet Singh,
Ingrid Strandberg, Slimane Thabet, David Wierichs, Vincent Wong.

# Release 0.17.0 (current release)

Expand Down
15 changes: 0 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
<p align="center">
<a href="https://pennylane.ai/blog/2021/07/pennylane-code-together/">
<img width=50% src="https://pennylane.ai/blog/images/code_together.jpg">
</a>
</p>

<p align="center">
<strong>Announcing <a href="https://pennylane.ai/blog/2021/07/pennylane-code-together/">PennyLane: Code Together</a>!
Join us on GitHub August 16th-27th, see <a href="https://github.com/PennyLaneAI/pennylane/blob/master/code_together.md">event FAQ here</a></strong>.
</p>

---



<p align="center">
<a href="https://pennylane.ai">
<img width=80% src="https://raw.githubusercontent.com/PennyLaneAI/pennylane/master/doc/_static/pennylane_thin.png">
Expand Down
47 changes: 0 additions & 47 deletions code_together.md

This file was deleted.

4 changes: 2 additions & 2 deletions pennylane/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class Configuration:
Args:
name (str): filename of the configuration file.
This should be a valid TOML file. You may also pass an absolute
or a relative file path to the configuration file.
This should be a valid TOML file. You may also pass an absolute
or a relative file path to the configuration file.
"""

def __init__(self, name):
Expand Down
1 change: 0 additions & 1 deletion pennylane/devices/default_mixed.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ class DefaultMixed(QubitDevice):
"PhaseFlip",
"ResetError",
"QubitChannel",
"QFT",
"SingleExcitation",
"SingleExcitationPlus",
"SingleExcitationMinus",
Expand Down
1 change: 0 additions & 1 deletion pennylane/devices/default_qubit.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ class DefaultQubit(QubitDevice):
"CRY",
"CRZ",
"CRot",
"QFT",
"IsingXX",
"IsingYY",
"IsingZZ",
Expand Down
5 changes: 3 additions & 2 deletions tests/templates/test_subroutines/test_qpe.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def test_phase_estimated(self, phase):
)
qml.probs(estimation_wires)

tape = tape.expand()
tape = tape.expand(depth=2, stop_at=lambda obj: obj.name in dev.operations)

res = tape.execute(dev).flatten()
initial_estimate = np.argmax(res) / 2 ** (wires - 1)

Expand Down Expand Up @@ -110,7 +111,7 @@ def test_phase_estimated_two_qubit(self):
)
qml.probs(estimation_wires)

tape = tape.expand(stop_at=lambda obj: obj.name in dev.operations)
tape = tape.expand(depth=2, stop_at=lambda obj: obj.name in dev.operations)
res = tape.execute(dev).flatten()

if phase < 0:
Expand Down

0 comments on commit 5b08e68

Please sign in to comment.