Skip to content

Commit

Permalink
regen stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-melf committed Dec 20, 2023
1 parent 52ca417 commit 1e2473b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pytket/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
14 changes: 14 additions & 0 deletions pytket/pytket/_tket/circuit.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion tket/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1e2473b

Please sign in to comment.