Skip to content

Commit

Permalink
Merge pull request #79 from CQCL/release/1.10.0
Browse files Browse the repository at this point in the history
Release/1.10.0
  • Loading branch information
cqc-melf authored Dec 20, 2022
2 parents 0921a93 + 346785d commit f4e6a5d
Show file tree
Hide file tree
Showing 4 changed files with 14 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.10.0"
__extension_version__ = "0.11.0"
__extension_name__ = "pytket-qujax"
7 changes: 7 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
~~~~~~~~~

0.11.0 (December 2022)
----------------------

* Update qujax version requirement to 0.3.1
* Add support for simulator=unitary in tk_to_qujax
* Updated pytket version requirement to 1.10.

0.10.0 (November 2022)
----------------------

Expand Down
6 changes: 4 additions & 2 deletions pytket/extensions/qujax/qujax_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ def tk_to_qujax(
If ``None``, parameterised gates determined by ``qujax.gates``. \n
If ``dict``, maps symbolic pytket parameters following the order in this dict.
:type symbol_map: Optional[dict]
:param simulator: string in ('statetensor', 'densitytensor') corresponding to
qujax simulator type. Defaults to statetensor.
:param simulator: string in ('statetensor', 'densitytensor', 'unitarytensor')
corresponding to qujax simulator type. Defaults to statetensor.
:type simulator: str
:return: Function which maps parameters (and optional statetensor_in)
to a statetensor.
Expand All @@ -241,6 +241,8 @@ def tk_to_qujax(
return qujax.get_params_to_statetensor_func(*qujax_args)
elif simulator in ("densitytensor", "density", "dt"):
return qujax.get_params_to_densitytensor_func(*qujax_args)
elif simulator in ("unitarytensor", "unitary", "ut"):
return qujax.get_params_to_unitarytensor_func(*qujax_args)
else:
raise TypeError(
f"simulator argument '{simulator}' not recognised, try 'statetensor' "
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
packages=find_namespace_packages(include=["pytket.*"]),
include_package_data=True,
install_requires=[
"pytket ~= 1.9",
"qujax ~= 0.3.0",
"pytket ~= 1.10",
"qujax ~= 0.3.1",
],
classifiers=[
"Environment :: Console",
Expand Down

0 comments on commit f4e6a5d

Please sign in to comment.