Skip to content

Commit

Permalink
Merge pull request #29 from CQCL/release/v0.3.0
Browse files Browse the repository at this point in the history
Release/v0.3.0
  • Loading branch information
PabloAndresCQ authored Sep 22, 2023
2 parents bbb055b + ba23446 commit 972bed6
Show file tree
Hide file tree
Showing 13 changed files with 1,020 additions and 835 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.2.1"
__extension_version__ = "0.3.0"
__extension_name__ = "pytket-cutensornet"
9 changes: 8 additions & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
~~~~~~~~~

0.3.0 (September 2023)
----------------------

* Added MPS sampling feature.
* Refactored MPS module for better maintainability and extendability.
* ``Tensor`` class removed from the API since it is no longer necessary.

0.2.1 (August 2023)
-------------------

Expand All @@ -16,4 +23,4 @@ Changelog
0.1.0 (June 2023)
-----------------

* Initial implementation of the converter and backend modules for use on a single GPU.
* Initial implementation of the converter and backend modules for use on a single GPU.
18 changes: 7 additions & 11 deletions docs/modules/mps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ Simulation

.. autofunction:: pytket.extensions.cutensornet.mps.simulate

.. autofunction:: pytket.extensions.cutensornet.mps.get_amplitude


Classes
~~~~~~~
Expand All @@ -24,9 +22,14 @@ Classes
.. automethod:: apply_gate
.. automethod:: vdot
.. automethod:: canonicalise
.. automethod:: get_virtual_bonds
.. automethod:: sample
.. automethod:: measure
.. automethod:: postselect
.. automethod:: expectation_value
.. automethod:: get_statevector
.. automethod:: get_amplitude
.. automethod:: get_qubits
.. automethod:: get_virtual_dimensions
.. automethod:: get_physical_bond
.. automethod:: get_physical_dimension
.. automethod:: get_device_id
.. automethod:: is_valid
Expand All @@ -46,13 +49,6 @@ Classes

.. autoclass:: pytket.extensions.cutensornet.mps.CuTensorNetHandle

.. autoclass:: pytket.extensions.cutensornet.mps.Tensor()

.. automethod:: __init__
.. automethod:: get_bond_dimension
.. automethod:: get_tensor_descriptor
.. automethod:: copy


Miscellaneous
~~~~~~~~~~~~~
Expand Down
145 changes: 108 additions & 37 deletions examples/mps_tutorial.ipynb

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions pytket/extensions/cutensornet/mps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@

from .mps import (
CuTensorNetHandle,
Handle,
Bond,
DirectionMPS,
Handle,
Tensor,
MPS,
)
Expand All @@ -34,4 +33,4 @@
MPSxMPO,
)

from .simulation import ContractionAlg, simulate, get_amplitude, prepare_circuit
from .simulation import ContractionAlg, simulate, prepare_circuit
Loading

0 comments on commit 972bed6

Please sign in to comment.