From 1e2473b42da608e25eb0dff8a9a3f7302247c3ca Mon Sep 17 00:00:00 2001 From: Melf Date: Wed, 20 Dec 2023 10:36:39 +0000 Subject: [PATCH] regen stubs --- pytket/conanfile.py | 2 +- pytket/pytket/_tket/circuit.pyi | 14 ++++++++++++++ tket/conanfile.py | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/pytket/conanfile.py b/pytket/conanfile.py index 74671d7653..18802883b5 100644 --- a/pytket/conanfile.py +++ b/pytket/conanfile.py @@ -32,7 +32,7 @@ def package(self): cmake.install() def requirements(self): - self.requires("tket/1.2.76@tket/stable") + self.requires("tket/1.2.77@tket/stable") self.requires("tklog/0.3.3@tket/stable") self.requires("tkrng/0.3.3@tket/stable") self.requires("tkassert/0.3.4@tket/stable") diff --git a/pytket/pytket/_tket/circuit.pyi b/pytket/pytket/_tket/circuit.pyi index 52f1283406..788b155fde 100644 --- a/pytket/pytket/_tket/circuit.pyi +++ b/pytket/pytket/_tket/circuit.pyi @@ -515,6 +515,20 @@ class Circuit: :return: the new :py:class:`Circuit` """ @typing.overload + def Reset(self, qubit: int, **kwargs: Any) -> Circuit: + """ + Appends a Reset operation. Sets a qubit to the Z-basis 0 state. Non-unitary operation. + + :return: the new :py:class:`Circuit` + """ + @typing.overload + def Reset(self, qubit: pytket._tket.unit_id.Qubit, **kwargs: Any) -> Circuit: + """ + Appends a Reset operation. Sets a qubit to the Z-basis 0 state. Non-unitary operation. + + :return: the new :py:class:`Circuit` + """ + @typing.overload def Rx(self, angle: sympy.Expr | float, qubit: int, **kwargs: Any) -> Circuit: """ Appends an Rx gate with a possibly symbolic angle (specified in half-turns). diff --git a/tket/conanfile.py b/tket/conanfile.py index 98153d6c55..ff253dab81 100644 --- a/tket/conanfile.py +++ b/tket/conanfile.py @@ -23,7 +23,7 @@ class TketConan(ConanFile): name = "tket" - version = "1.2.76" + version = "1.2.77" package_type = "library" license = "Apache 2" homepage = "https://github.com/CQCL/tket"