Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloAndresCQ committed Oct 23, 2024
1 parent e760ba1 commit 35fee38
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 23 deletions.
5 changes: 0 additions & 5 deletions docs/api.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
API documentation
-----------------

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

.. automethod:: destroy


.. toctree::
modules/general_state.rst
modules/structured_state.rst
8 changes: 8 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
Changelog
~~~~~~~~~

Unreleased
----------

* New API: ``GeneralBraOpKet`` for exact calculation of arbitrary ``<bra|op|ket>`` values.
* New feature: ``GeneralState`` has a new method ``get_amplitude`` to obtain the amplitude of computational basis states.
* New feature: ``GeneralState`` and ``CuTensorNetShotsBackend`` now support RNG seeds for sampling.
* Deprecated ``TensorNetwork`` object. It is still available for the sake backwards compatibility, but it has been removed from doc pages.

0.9.0 (October 2024)
---------------------

Expand Down
23 changes: 5 additions & 18 deletions docs/modules/general_state.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,17 @@ General state (exact) simulation
.. automodule:: pytket.extensions.cutensornet.general_state

.. autoclass:: pytket.extensions.cutensornet.general_state.GeneralState()

.. automethod:: __init__
.. automethod:: get_statevector
.. automethod:: get_amplitude
.. automethod:: expectation_value
.. automethod:: sample
.. automethod:: destroy

cuQuantum `contract` API interface
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: pytket.extensions.cutensornet.general_state.TensorNetwork

.. autoclass:: pytket.extensions.cutensornet.general_state.PauliOperatorTensorNetwork

.. autoclass:: pytket.extensions.cutensornet.general_state.ExpectationValueTensorNetwork

.. autofunction:: pytket.extensions.cutensornet.general_state.tk_to_tensor_network

.. autofunction:: pytket.extensions.cutensornet.general_state.measure_qubits_state

.. autofunction:: pytket.extensions.cutensornet.general_state.get_operator_expectation_value

.. autofunction:: pytket.extensions.cutensornet.general_state.get_circuit_overlap

.. autoclass:: pytket.extensions.cutensornet.general_state.GeneralBraOpKet()
.. automethod:: __init__
.. automethod:: contract
.. automethod:: destroy

Pytket backend
~~~~~~~~~~~~~~
Expand Down
4 changes: 4 additions & 0 deletions docs/modules/structured_state.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ Structured state evolution

.. automodule:: pytket.extensions.cutensornet.structured_state

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

.. automethod:: destroy


Simulation
~~~~~~~~~~
Expand Down

0 comments on commit 35fee38

Please sign in to comment.