working, simulates density matrix for arbitrary input state