diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md new file mode 100644 index 0000000..e9d425e --- /dev/null +++ b/.github/CHANGELOG.md @@ -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 diff --git a/.travis.yml b/.travis.yml index 6d88531..c148d18 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/doc/installing.rst b/doc/installing.rst index e21795f..376db79 100644 --- a/doc/installing.rst +++ b/doc/installing.rst @@ -16,7 +16,7 @@ PennyLane-Cirq requires the following libraries be installed: as well as the following Python packages: * `PennyLane `_ >=0.6 -* `Cirq `_ >= 0.5 +* `Cirq `_ >= 0.6 If you currently do not have Python 3 installed, we recommend `Anaconda for Python 3 `_, a distributed version of Python packaged for scientific computation. diff --git a/pennylane_cirq/_version.py b/pennylane_cirq/_version.py index c75878a..5016c07 100644 --- a/pennylane_cirq/_version.py +++ b/pennylane_cirq/_version.py @@ -16,4 +16,4 @@ Version number (major.minor.patch[-label]) """ -__version__ = "0.1.0" +__version__ = "0.2.0-dev" diff --git a/requirements.txt b/requirements.txt index 0ff2477..ef9cc08 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ pennylane>=0.6 -cirq>=0.5 +cirq>=0.6 diff --git a/tests/test_apply.py b/tests/test_apply.py index 903a195..9ef5d0b 100644 --- a/tests/test_apply.py +++ b/tests/test_apply.py @@ -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]) diff --git a/tests/test_cirq_device.py b/tests/test_cirq_device.py index 4270bcb..8853893 100644 --- a/tests/test_cirq_device.py +++ b/tests/test_cirq_device.py @@ -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", [