The two-particle density matrix contains all information which is "readable" by one-and two-particle operators. This work discusses the building of a two-electron density matrix, which is perfectly N-representable by construction. The 2-matrix of a pure quantum state is obtained without the intermediate determination of the wave function. The procedure is illustrated by computations on atomic and small molecular systems.