Skip to content

Commit

Permalink
Merge pull request #95 from qiboteam/qwc
Browse files Browse the repository at this point in the history
Reduce measurement cost using qubit-wise commutativity
  • Loading branch information
damarkian authored Apr 29, 2024
2 parents 81239b2 + 4693517 commit c1c3cde
Show file tree
Hide file tree
Showing 15 changed files with 621 additions and 138 deletions.
20 changes: 17 additions & 3 deletions doc/source/api-reference/measurement.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,24 @@
Measurement
===========

This section covers the API reference for obtaining the expectation value of a (molecular) Hamiltonian
This section covers the API reference for obtaining the expectation value of a (molecular) Hamiltonian, either from a
state vector simulation, or from sample measurements.

Expectation value of Hamiltonian
--------------------------------

.. autofunction:: qibochem.measurement.result.expectation

.. _expectation-samples:

.. autofunction:: qibochem.measurement.result.expectation_from_samples

Measurement cost reduction
--------------------------

The following functions are used for reducing and optimising the measurement cost of obtaining the Hamiltonian
expectation value when sample measurements are used.

.. autofunction:: qibochem.measurement.optimization.measurement_basis_rotations

.. autofunction:: qibochem.measurement.optimization.allocate_shots

.. autofunction:: qibochem.measurement.expectation
2 changes: 1 addition & 1 deletion doc/source/tutorials/ansatz.rst
Original file line number Diff line number Diff line change
Expand Up @@ -232,4 +232,4 @@ The orthonormal molecular orbitals :math:`\phi` are optimized by a direct minimi
.. [#f6] Piela, L. (2007). 'Ideas of Quantum Chemistry'. Elsevier B. V., the Netherlands.
.. [#f7] Clements W. R. et al., 'Optimal Design for Universal Multiport Interferometers', Optica 3 (2016) 1460.
.. [#f7] Clements, W. R. et al., 'Optimal Design for Universal Multiport Interferometers', Optica 3 (2016) 1460.
4 changes: 4 additions & 0 deletions doc/source/tutorials/bk_ham_graph.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions doc/source/tutorials/h2_terms.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c1c3cde

Please sign in to comment.