Skip to content

Commit

Permalink
add initial_state
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomello committed Oct 15, 2024
1 parent cf68973 commit ae932d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qibo/backends/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def calculate_singular_value_decomposition(self, matrix): # pragma: no cover

@abc.abstractmethod
def calculate_jacobian_matrix(
self, circuit, parameters, return_complex: bool = True
self, circuit, parameters, initial_state=None, return_complex: bool = True
): # pragma: no cover
"""Calculate the Jacobian matrix of ``circuit`` with respect to varables ``params``."""
raise_error(NotImplementedError)
Expand Down
2 changes: 1 addition & 1 deletion src/qibo/backends/numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ def calculate_singular_value_decomposition(self, matrix):
return self.np.linalg.svd(matrix)

def calculate_jacobian_matrix(
self, circuit, parameters=None, return_complex: bool = True
self, circuit, parameters=None, initial_state=None, return_complex: bool = True
):
raise_error(
NotImplementedError,
Expand Down

0 comments on commit ae932d5

Please sign in to comment.