Skip to content

Commit 97bc793

Browse files
committed
.
1 parent d616813 commit 97bc793

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cirq-core/cirq/protocols/kraus_protocol_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ def _apply_channel_(self, args: cirq.ApplyChannelArgs):
212212

213213

214214
def test_reset_channel_kraus_apply_channel_consistency():
215-
"""Test that ResetChannel's _kraus_ and _apply_channel_ produce the same channel, even if one is missing."""
215+
"""Test that ResetChannel's _kraus_ and _apply_channel_ produce the same channel,
216+
even if one is missing."""
216217
Reset = cirq.ResetChannel
217218
# Original gate
218219
gate = Reset()

cirq-core/cirq/qis/channels_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
from __future__ import annotations
1818

19-
from typing import Iterable, Sequence
19+
from typing import Iterable
2020

2121
import numpy as np
2222
import pytest

cirq-core/cirq/testing/circuit_compare.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,7 @@ def assert_has_consistent_qid_shape(val: Any) -> None:
494494

495495

496496
def apply_kraus_operators(kraus_operators: Sequence[np.ndarray], rho: np.ndarray) -> np.ndarray:
497-
"""
498-
Applies a quantum channel (in Kraus operator form) to a density matrix.
497+
"""Applies a quantum channel (in Kraus operator form) to a density matrix.
499498
500499
Args:
501500
kraus_operators: Sequence of Kraus operators specifying the channel.

0 commit comments

Comments
 (0)