GTorlai / PastaQ.jl

Package for Simulation, Tomography and Analysis of Quantum Computers
Apache License 2.0
142 stars 23 forks source link

Make calls like `randomstate(10; χ = 2, ξ = 2)` make a mixed state #195

Closed mtfishman closed 3 years ago

mtfishman commented 3 years ago

Currently, randomstate(10; χ = 2, ξ = 2) returns an MPS with bond dimension 2. I think instead we should return an LPDO{MPO} with Kraus dimension 2 (which currently requires that you explicitly set mixed = true, but I think it is unambiguous that if you set a nontrivial Kraus dimension then you want a mixed state).

mtfishman commented 3 years ago

(Also the same for randomprocess.)