started work on entanglement (density matrix calculation)