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

[WIP] Bump version and adjust to Cirq 0.6.0 #13

Merged
merged 12 commits into from
Nov 6, 2019
31 changes: 31 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Release 0.2.0-dev

### New features since last release

### Breaking changes

### Improvements

### Documentation

### Bug fixes

* Fix bugs introduces into the test suite by the release of Cirq 0.6.0
[#13](https://github.com/XanaduAI/pennylane-cirq/pull/13)

### Contributors

This release contains contributions from (in alphabetical order):

Johannes Jakob Meyer

---

# Release 0.1.0

Initial public release.

### Contributors
This release contains contributions from:

Johannes Jakob Meyer
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ language: python
cache: pip
dist: xenial
python:
- 3.5
- 3.6
- 3.7
install:
- pip install pip --upgrade
- pip install networkx==2.3
- pip install -e git+https://github.com/XanaduAI/pennylane.git#egg=pennylane
- pip install -r requirements.txt
- pip install pytest pytest-cov wheel codecov --upgrade
Expand Down
2 changes: 1 addition & 1 deletion doc/installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ PennyLane-Cirq requires the following libraries be installed:
as well as the following Python packages:

* `PennyLane <http://pennylane.readthedocs.io/>`_ >=0.6
* `Cirq <https://cirq.readthedocs.io/>`_ >= 0.5
* `Cirq <https://cirq.readthedocs.io/>`_ >= 0.6


If you currently do not have Python 3 installed, we recommend `Anaconda for Python 3 <https://www.anaconda.com/download/>`_, a distributed version of Python packaged for scientific computation.
Expand Down
2 changes: 1 addition & 1 deletion pennylane_cirq/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
Version number (major.minor.patch[-label])
"""

__version__ = "0.1.0"
__version__ = "0.2.0-dev"
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pennylane>=0.6
cirq>=0.5
cirq>=0.6
2 changes: 1 addition & 1 deletion tests/test_apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def test_invalid_qubit_state_unitary(self, device):
dev = device(2)
state = np.array([[0, 123.432], [-0.432, 023.4]])

with pytest.raises(ValueError, match=r"Not a 2x2 unitary matrix"):
with pytest.raises(ValueError, match=r"Not a 2x2 .* unitary matrix"):
with mimic_execution_for_apply(dev):
dev.apply("QubitUnitary", [0, 1], [state])

Expand Down
2 changes: 1 addition & 1 deletion tests/test_cirq_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def test_apply_two_wires(self, cirq_device_2_wires, gate, par, expected_cirq_gat
assert len(ops) == len(expected_cirq_gates)

for i in range(len(ops)):
assert ops[i]._gate == expected_cirq_gates[i]
assert ops[i].gate == expected_cirq_gates[i]


# @pytest.mark.parametrize("operation,par,expected_cirq_gates", [
Expand Down