Skip to content

Commit

Permalink
Merge pull request #41 from CQCL/release/0.31.1
Browse files Browse the repository at this point in the history
Release/0.31.1
  • Loading branch information
cqc-alec committed Nov 9, 2023
2 parents 5e7db82 + ef54c7f commit 0020673
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
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.31.0"
__extension_version__ = "0.31.1"
__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.31.1 (November 2023)
----------------------

* Replace uses of "private" (underscored) pytket symbols.

0.31.0 (October 2023)
---------------------

Expand Down
8 changes: 4 additions & 4 deletions pytket/extensions/cirq/backends/cirq.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
RemoveRedundancies,
FullPeepholeOptimise,
)
from pytket.circuit_library import _TK1_to_PhasedXRz, _CX
from pytket.circuit_library import TK1_to_PhasedXRz, CX
from pytket.predicates import (
GateSetPredicate,
NoClassicalControlPredicate,
Expand Down Expand Up @@ -494,7 +494,7 @@ def package_results(


_cirq_squash = SquashCustom(
{OpType.PhasedX, OpType.Rz, OpType.Rx, OpType.Ry}, _TK1_to_PhasedXRz
{OpType.PhasedX, OpType.Rz, OpType.Rx, OpType.Ry}, TK1_to_PhasedXRz
)

_regular_gate_set_predicate = GateSetPredicate(
Expand Down Expand Up @@ -546,7 +546,7 @@ def package_results(


def _tk1_to_phasedxrz_clifford(a: float, b: float, c: float) -> Circuit:
circ = _TK1_to_PhasedXRz(a, b, c)
circ = TK1_to_PhasedXRz(a, b, c)
Transform.RebaseToCliffordSingles().apply(circ)
return circ

Expand All @@ -568,6 +568,6 @@ def _tk1_to_phasedxrz_clifford(a: float, b: float, c: float) -> Circuit:
OpType.CX,
OpType.CZ,
},
_CX(),
CX(),
_tk1_to_phasedxrz_clifford, # type: ignore
)

0 comments on commit 0020673

Please sign in to comment.