In this paper a new quantum analog of Hermite-Hadamard inequality is presented, and based on it, two new quantum trapezoid and midpoint identities are obtained. Moreover, the quantum analog of some trapezoid and midpoint type inequalities are established.