diff --git a/tests/test_noise_models.py b/tests/test_noise_models.py index b0f41ec4..b2012325 100644 --- a/tests/test_noise_models.py +++ b/tests/test_noise_models.py @@ -85,7 +85,7 @@ def test_build_qerror_op(self, qiskit_error, pl_channel): assert qml.equal(pl_op_from_qiskit, pl_channel) else: assert isinstance(pl_op_from_qiskit, type(pl_channel)) - assert all([x1 == x2 for x1, x2 in zip(pl_op_from_qiskit.data, pl_channel.data)]) + assert all(x1 == x2 for x1, x2 in zip(pl_op_from_qiskit.data, pl_channel.data)) @pytest.mark.parametrize( "qiskit_error, pl_channel",