def test_p0_p1_sum_not_normalized(self): with pytest.raises(ValueError, match="must be between"): channel.ResetError(1.0, 1.0, wires=0).kraus_matrices
def test_p1_invalid_parameter(self): with pytest.raises(ValueError, match="p_1 must be between"): channel.ResetError(0.0, 1.5, wires=0).kraus_matrices