Skip to content

Commit

Permalink
initial review
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathonMisiewicz committed May 28, 2024
1 parent 9d37be8 commit 8e040e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/qforte/abc/algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __init__(

elif self._state_prep_type == "computer":
if not isinstance(reference, qf.Computer):
raise ValueError("unitary_circ reference must be a Circuit.")
raise ValueError("computer reference must be a Computer.")
if not fast:
raise ValueError(
"User specified they want to simulate a quantum computer but not specify how to prepare the initial state. That's inconsistent."
Expand All @@ -106,7 +106,7 @@ def __init__(
)
if (
not hasattr(self, "computer_initializable")
and self.computer_initializable
or not self.computer_initializable
):
raise ValueError("Class cannot be initialized with a computer.")

Expand All @@ -117,7 +117,7 @@ def __init__(

else:
raise ValueError(
"QForte only suppors references as occupation lists and Circuits."
"QForte only supports references as occupation lists, Circuits, or Computers."
)

self._nqb = len(self._ref)
Expand Down

0 comments on commit 8e040e0

Please sign in to comment.