Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/0.8.0 #159

Merged
merged 3 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.7.1"
__extension_version__ = "0.8.0"
__extension_name__ = "pytket-cutensornet"
8 changes: 4 additions & 4 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
Changelog
~~~~~~~~~

Unreleased
----------
0.8.0 (September 2024)
----------------------

* API breaking changes
* Removed ``use_kahypar`` option from ``Config``. It can still be set via the ``simulate`` option ``compilation_params``.

* New feature: ``simulate`` now accepts pytket circuits with ``Measure``, ``Reset``, ``Conditional``, ``ClassicalExpBox`` and more classical operations. You can now retrieve classical bit values using ``get_bits``.
* When calling ``simulate``, the gates on the circuit are no longer sorted by default. Use ``compilation_params["sort_gates"] = True`` to recover this behaviour, which is now deprecated.
* ``StructuredState`` now supports simulation of single qubit circuits.
* Some bugfixes on MPSxMPO relating to measurement and relabelling qubits. The bug was caused due to these functions not guaranteeing the MPO was applied before their action.
* Some bugfixes on ``MPSxMPO`` relating to measurement and relabelling qubits. The bug was caused due to these functions not guaranteeing the MPO was applied before their action.
* Documentation fixes:
* ``apply_qubit_relabelling`` now appears in the documentation.
* ``add_qubit`` removed from documentation of MPSxMPO, since it is not supported.
* ``add_qubit`` removed from documentation of ``MPSxMPO``, since it is not currently supported.

0.7.1 (July 2024)
-----------------
Expand Down
1 change: 1 addition & 0 deletions docs/modules/structured_state.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Classes
.. automethod:: get_fidelity
.. automethod:: get_statevector
.. automethod:: get_amplitude
.. automethod:: get_bits
.. automethod:: get_qubits
.. automethod:: get_byte_size
.. automethod:: get_device_id
Expand Down
5 changes: 4 additions & 1 deletion pytket/extensions/cutensornet/structured_state/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,10 @@ def get_amplitude(self, state: int) -> complex:
raise NotImplementedError(f"Method not implemented in {type(self).__name__}.")

def get_bits(self) -> dict[Bit, bool]:
"""Returns the dictionary of bits and their values."""
"""Returns the dictionary of bits and their values.

A bit with value ``False`` corresponds to ``0``, and ``True`` is ``1``.
"""
return self._bits_dict.copy()

@abstractmethod
Expand Down
Loading