-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Created new general.py file for logger and cutensornet handle. Updated copyright comment. * Moved MPS code to make room for TTN. * Moved ConfigMPS to Config in general.py * Began implementation of TTN * Added single-qubit gate support and some basic tests. * Added vdot to TTN * Implemented get_amplitude and get_statevector. Current tests passing. * Implemented canonicalisation * Canonicalisation debugged * Exact apply 2q gate implemented and debugged * Added truncation by chi and value_of_zero * Unified TTN and MPS via StructuredState abstract class * _get_qubit_partition now does recursive balanced bisections. * Added truncation_fidelity approach to TTNxGate Co-authored-by: Iakov Polyak <[email protected]> * Updated docstring. --------- Co-authored-by: PabloAndresCQ <[email protected]> Co-authored-by: Iakov Polyak <[email protected]>
- Loading branch information
1 parent
a7b10bd
commit 4317b14
Showing
17 changed files
with
3,959 additions
and
1,795 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ API documentation | |
|
||
.. toctree:: | ||
modules/fullTN.rst | ||
modules/mps.rst | ||
modules/structured_state.rst |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
Structured state evolution | ||
========================== | ||
|
||
.. automodule:: pytket.extensions.cutensornet.structured_state | ||
|
||
|
||
Simulation | ||
~~~~~~~~~~ | ||
|
||
.. autofunction:: pytket.extensions.cutensornet.structured_state.simulate | ||
|
||
.. autoenum:: pytket.extensions.cutensornet.structured_state.SimulationAlgorithm() | ||
:members: | ||
|
||
.. autoclass:: pytket.extensions.cutensornet.structured_state.Config() | ||
|
||
.. automethod:: __init__ | ||
|
||
.. autoclass:: pytket.extensions.cutensornet.structured_state.CuTensorNetHandle | ||
|
||
|
||
Classes | ||
~~~~~~~ | ||
|
||
.. autoclass:: pytket.extensions.cutensornet.structured_state.StructuredState() | ||
|
||
.. automethod:: __init__ | ||
.. automethod:: is_valid | ||
.. automethod:: apply_gate | ||
.. automethod:: apply_scalar | ||
.. automethod:: vdot | ||
.. automethod:: sample | ||
.. automethod:: measure | ||
.. automethod:: postselect | ||
.. automethod:: expectation_value | ||
.. automethod:: get_fidelity | ||
.. automethod:: get_statevector | ||
.. automethod:: get_amplitude | ||
.. automethod:: get_qubits | ||
.. automethod:: get_byte_size | ||
.. automethod:: get_device_id | ||
.. automethod:: update_libhandle | ||
.. automethod:: copy | ||
|
||
.. autoclass:: pytket.extensions.cutensornet.structured_state.TTNxGate() | ||
|
||
.. automethod:: __init__ | ||
|
||
.. autoclass:: pytket.extensions.cutensornet.structured_state.MPSxGate() | ||
|
||
.. automethod:: __init__ | ||
|
||
.. autoclass:: pytket.extensions.cutensornet.structured_state.MPSxMPO() | ||
|
||
.. automethod:: __init__ | ||
|
||
|
||
Miscellaneous | ||
~~~~~~~~~~~~~ | ||
|
||
.. autofunction:: pytket.extensions.cutensornet.structured_state.prepare_circuit_mps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.