Skip to content

Commit

Permalink
Merge pull request #74 from CQCL/release/1.27.0
Browse files Browse the repository at this point in the history
Release/1.27.0
  • Loading branch information
cqc-melf committed Apr 17, 2024
2 parents 4b0202a + 6d446ff commit a1a5152
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4.0.3
uses: actions/deploy-pages@v4.0.5
2 changes: 0 additions & 2 deletions .github/workflows/docs/build-docs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ def build_module_docs():
"-D",
f"project=pytket-{MODULE}",
"-D",
f"copyright={datetime.date.today().year} Cambridge Quantum Computing",
"-D",
f"version={'.'.join(v[:2])}",
"-D",
f"release={'.'.join(v)}",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Configuration file for the Sphinx documentation builder.
# See https://www.sphinx-doc.org/en/master/usage/configuration.html

author = "Cambridge Quantum Computing Ltd"
author = "Quantinuum"

extensions = [
"sphinx.ext.autodoc",
Expand Down
2 changes: 1 addition & 1 deletion _metadata.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__extension_version__ = "0.35.0"
__extension_version__ = "0.36.0"
__extension_name__ = "pytket-cirq"
5 changes: 5 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
~~~~~~~~~

0.36.0 (April 2024)
-------------------

* Updated pytket version requirement to 1.27.

0.35.0 (March 2024)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion pytket/extensions/cirq/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2024 Cambridge Quantum Computing
# Copyright 2019-2024 Quantinuum
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pytket/extensions/cirq/backends/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2020-2024 Cambridge Quantum Computing
# Copyright 2020-2024 Quantinuum
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pytket/extensions/cirq/backends/cirq.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2020-2024 Cambridge Quantum Computing
# Copyright 2020-2024 Quantinuum
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions pytket/extensions/cirq/backends/cirq_convert.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2024 Cambridge Quantum Computing
# Copyright 2019-2024 Quantinuum
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -265,7 +265,7 @@ def tk_to_cirq(tkcirc: Circuit, copy_all_qubits: bool = False) -> cirq.circuits.
"Cannot convert tket Op to Cirq gate: " + op.get_name()
) from error
if optype == OpType.Measure:
qid = qmap[command.args[0]]
qid = qmap[cast(Qubit, command.args[0])]
bit = command.args[1]
# Removing the "_b" added to measurement bit registers uids,
# for dealing with NamedQubits
Expand All @@ -274,7 +274,7 @@ def tk_to_cirq(tkcirc: Circuit, copy_all_qubits: bool = False) -> cirq.circuits.
bit_repr = bit_repr[0:-2]
cirqop = cirq.ops.measure(qid, key=bit_repr)
else:
qids = [qmap[qbit] for qbit in command.args]
qids = [qmap[cast(Qubit, qbit)] for qbit in command.args]
params = op.params
if len(params) == 0:
cirqop = gatetype(*qids)
Expand Down
2 changes: 1 addition & 1 deletion pytket/extensions/cirq/backends/cirq_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2020-2024 Cambridge Quantum Computing
# Copyright 2020-2024 Quantinuum
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2020-2024 Cambridge Quantum Computing
# Copyright 2020-2024 Quantinuum
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -44,10 +44,10 @@
packages=find_namespace_packages(include=["pytket.*"]),
include_package_data=True,
install_requires=[
"pytket ~= 1.26",
"pytket ~= 1.27",
"cirq-core ~= 1.0",
"cirq-google ~= 1.0",
"protobuf >= 3.20, < 5.0",
"protobuf >= 3.20, < 6.0",
],
classifiers=[
"Environment :: Console",
Expand Down
2 changes: 1 addition & 1 deletion tests/cirq_convert_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2024 Cambridge Quantum Computing
# Copyright 2019-2024 Quantinuum
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cirq_backend.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2024 Cambridge Quantum Computing
# Copyright 2019-2024 Quantinuum
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down

0 comments on commit a1a5152

Please sign in to comment.