Skip to content

Commit

Permalink
Add return type annotation on MeasurementGate.full_invert_mask (quant…
Browse files Browse the repository at this point in the history
…umlib#5080)

Review: @tanujkhattar 
Co-authored-by: Tanuj Khattar <[email protected]>
  • Loading branch information
maffoo and tanujkhattar authored Mar 16, 2022
1 parent 16ad898 commit 4a648cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 4a648cc

Please sign in to comment.