def test_tg_le_0_invalid_parameter(self): with pytest.raises(ValueError, match="Invalid gate_time"): channel.ThermalRelaxationError(0.3, 100e-6, 100e-6, -20e-9, wires=0).kraus_matrices
def test_T2_le_0_invalid_parameter(self): with pytest.raises(ValueError, match="Invalid T_2 relaxation time parameter"): channel.ThermalRelaxationError(0.3, 100e-6, 0, 20e-9, wires=0).kraus_matrices
def test_pe_invalid_parameter(self): with pytest.raises(ValueError, match="pe must be between"): channel.ThermalRelaxationError(1.5, 100e-6, 100e-6, 20e-9, wires=0).kraus_matrices