Skip to content

Commit

Permalink
Add return type annotation on MeasurementGate.full_invert_mask (#5080)
Browse files Browse the repository at this point in the history
Review: @tanujkhattar 
Co-authored-by: Tanuj Khattar <[email protected]>
  • Loading branch information
maffoo and tanujkhattar authored Mar 16, 2022
1 parent fa473b4 commit 701f62c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cirq-core/cirq/ops/measurement_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def with_bits_flipped(self, *bit_positions: int) -> 'MeasurementGate':
self.num_qubits(), key=self.key, invert_mask=tuple(new_mask), qid_shape=self._qid_shape
)

def full_invert_mask(self):
def full_invert_mask(self) -> Tuple[bool, ...]:
"""Returns the invert mask for all qubits.
If the user supplies a partial invert_mask, this returns that mask
Expand Down

0 comments on commit 701f62c

Please sign in to comment.