Quantum effects on the electron correlation function