We study the quantum drift diffusion model (QDD) which was known (Density Gradient Model DG model) of semiconductor. This macroscopic model consists of a nonlinear parabolic equation for electron density, which coupled with a Poisson equation for electrostatic potential. We solve this system numerically by finite difference method, which can maintain the positivity of density in whole space. Numerical results for a ballistic diode structure are presented.