Skip to content

Commit

Permalink
Merge branch 'master' into fixsubgraph
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-luque committed Dec 18, 2024
2 parents 866b969 + 901b162 commit 9bb2c2b
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 2,347 deletions.
17 changes: 0 additions & 17 deletions doc/source/api-reference/qibo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,23 +194,6 @@ Iterative Quantum Amplitude Estimation (IQAE)
:member-order: bysource


Double Bracket Iteration algorithm for Diagonalization
""""""""""""""""""""""""""""""""""""""""""""""""""""""

The Double Bracket Flow (DBF) has been presented `here <https://arxiv.org/abs/2206.11772>`_
as a novel strategy for preparing eigenstates of a quantum system. We implement in
Qibo a discretized version of the algorithm, which executes sequential Double
Bracket Iterations.

.. autoclass:: qibo.models.dbi.double_bracket.DoubleBracketGeneratorType
:members:
:member-order: bysource

.. autoclass:: qibo.models.dbi.double_bracket.DoubleBracketIteration
:members:
:member-order: bysource


.. _timeevolution:

Time evolution
Expand Down
1 change: 0 additions & 1 deletion doc/source/code-examples/tutorials/dbi/README.md

This file was deleted.

This file was deleted.

58 changes: 0 additions & 58 deletions examples/dbi/README.md

This file was deleted.

782 changes: 0 additions & 782 deletions examples/dbi/dbi_tutorial_basic_intro.ipynb

This file was deleted.

8 changes: 8 additions & 0 deletions src/qibo/gates/gates.py
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,14 @@ def __init__(self, q0, q1, theta, trainable=True):
def qasm_label(self):
return "cry"

def decompose(self) -> List[Gate]:
"""Decomposition of :math:`\\text{CRY}` gate."""
from qibo.transpiler.decompositions import ( # pylint: disable=C0415
standard_decompositions,
)

return standard_decompositions(self)


class CRZ(_CRn_):
"""Controlled rotation around the Z-axis for the Bloch sphere.
Expand Down
Empty file removed src/qibo/models/dbi/__init__.py
Empty file.
Loading

0 comments on commit 9bb2c2b

Please sign in to comment.