Skip to content

Commit

Permalink
minor fix to ansatz documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
damarkian committed Apr 17, 2024
1 parent 2440399 commit 95d04d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Binary file added doc/source/api-reference/.ansatz.rst.swp
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/source/api-reference/ansatz.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ Unitary Coupled Cluster
Basis rotation
--------------

.. autofunction:: qibochem.ansatz.basis_rotation.br_circuit
.. autofunction:: qibochem.ansatz.basis_rotation.basis_rotation_gates
3 changes: 2 additions & 1 deletion src/qibochem/ansatz/basis_rotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import numpy as np

# from openfermion.linalg.givens_rotations import givens_decomposition
from qibo import gates, models
from scipy.linalg import expm

Expand Down Expand Up @@ -249,6 +248,7 @@ def assign_element(A, row, col, k):
def basis_rotation_gates(A, z_array, parameters):
r"""
places the basis rotation gates on circuit in the order of Clements scheme QR decomposition
Args:
A:
NxN matrix, with -1 being null, 0 is the control and integers
Expand All @@ -265,6 +265,7 @@ def basis_rotation_gates(A, z_array, parameters):
list of gates which implement the basis rotation using Clements scheme QR decomposition
ordered_angles:
list of angles ordered by sequence of singles excitation gates added to circuit
"""
N = len(A[0])
gate_list = []
Expand Down

0 comments on commit 95d04d1

Please sign in to comment.