Skip to content

Commit

Permalink
Tobesquashed
Browse files Browse the repository at this point in the history
  • Loading branch information
rht committed Nov 14, 2019
1 parent 2ba8b84 commit d8730a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyquil/paulis.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def __getitem__(self, item: int) -> PauliTerm:
"""
return self.terms[item]

def __iter__(self):
def __iter__(self) -> Iterator[PauliTerm]:
return self.terms.__iter__()

def __mul__(self, other: PauliT) -> 'PauliSum':
Expand Down Expand Up @@ -990,7 +990,7 @@ def is_zero(pauli_object: Union[PauliTerm, PauliSum]) -> bool:


def trotterize(first_pauli_term: PauliTerm, second_pauli_term: PauliTerm, trotter_order: Optional[int] = 1,
trotter_steps: Optional[int] = 1):
trotter_steps: Optional[int] = 1) -> Program:
"""
Create a Quil program that approximates exp( (A + B)t) where A and B are
PauliTerm operators.
Expand Down

0 comments on commit d8730a4

Please sign in to comment.