Skip to content

Commit 3c869da

Browse files
types
1 parent 69e172a commit 3c869da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cirq-core/cirq/experiments/ghz/fidelity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def int_to_stabilizer(which_stabilizer: int, qubits: list[ops.Qid]) -> ops.Pauli
4343
basis_ops = [ops.Z(qubits[i]) * ops.Z(qubits[i + 1]) for i in range(num_qubits - 1)] + [XXX]
4444
which_to_include = np.binary_repr(which_stabilizer, num_qubits)
4545

46-
op_to_return = ops.I(qubits[0])
46+
op_to_return: ops.PauliString = ops.PauliString(ops.I(qubits[0]))
4747
for q in range(num_qubits):
4848
if which_to_include[-1 - q] == "1":
4949
op_to_return *= basis_ops[q]

0 commit comments

Comments
 (0)