Skip to content

Commit

Permalink
Merge branch 'jm/embed_tests' of github.com:pasqal-io/pyqtorch into j…
Browse files Browse the repository at this point in the history
…m/embed_tests
  • Loading branch information
vytautas-a committed Sep 23, 2024
2 parents ac7e7a4 + 6a9b22c commit 26c2f2c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pyqtorch/embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,30 @@ def sqrt(x: str | ConcretizedCallable):
return ConcretizedCallable("sqrt", [x])


def sin(x: str | ConcretizedCallable):
return ConcretizedCallable("sin", [x])


def cos(x: str | ConcretizedCallable):
return ConcretizedCallable("cos", [x])


def log(x: str | ConcretizedCallable):
return ConcretizedCallable("log", [x])


def tan(x: str | ConcretizedCallable):
return ConcretizedCallable("tan", [x])


def tanh(x: str | ConcretizedCallable):
return ConcretizedCallable("tanh", [x])


def sqrt(x: str | ConcretizedCallable):
return ConcretizedCallable("sqrt", [x])


class Embedding:
"""A class relating variational and feature parameters used in ConcretizedCallable instances to
parameter names used in gates.
Expand Down

0 comments on commit 26c2f2c

Please sign in to comment.