Simulation of biphoton density matrix