Skip to content

Commit

Permalink
small additions
Browse files Browse the repository at this point in the history
  • Loading branch information
ziechys committed Feb 6, 2024
1 parent 7bc7e74 commit a184b62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slowquant/qiskit_interface/linear_response/lr_baseclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def run(self) -> None:
"""Run linear response."""
raise NotImplementedError

def _get_qbitmap(self) -> np.ndarray:
def _get_qbitmap(self) -> tuple[list[list[str]], list[list[str]], list[list[str]]]:
"""Get qbitmapping of operators."""
raise NotImplementedError

Expand Down Expand Up @@ -221,13 +221,13 @@ def get_num_nonCBS(matrix: list[list[str]]) -> int:


def get_num_CBS_elements(matrix: list[list[str]]) -> tuple[int, int]:
"""Count number of computational basis measurements and non computational basis measurements in operator matrix.
"""Count how many individual elements in matrix require only measurement in computational basis and how many do not.
Args:
matrix: Operator matrix.
Returns:
Number of computational basis measurements and non computational basis measurements.
Number of elements only requiring computational basis measurements and how many do not.
"""
count_CBS = 0
count_nCBS = 0
Expand Down

0 comments on commit a184b62

Please sign in to comment.