Vlad Gheorghiu

Results 10 comments of Vlad Gheorghiu

`qpp` has `qpp::randket()` for preparing random pure states (uniformly distributed according to the Haar measure). Are you thinking of a function that prepares random states with a low-depth/count circuit? I...

@DevelopDaily Looks useful indeed. I'll implement when I get the time :)

@DevelopDaily Great suggestion, and sorry for getting at this issue so late! Most of the implementations follow the conventions in Nielsen and Chuang. Some are my own. The only code...

Thanks! Good catch. I'll incorporate the fix into the current dev branch (where I'm fixing the other issue), so no need for a PR for this one.

@antoine-bussy Fixed on dev branch. In fact, there's no need for that resize second argument, so simply defining `std::vector outstates(Ks.size());` suffices.

@antoine-bussy Yes, I bumped into that (when testing your code). I think the latest solution is the most straightforward, and least intrusive.

@sergeysalata The state is a vector, as you evolve an initial pure state. What you're asking for is the density matrix, which can be obtained by `ket psi = qengine.get_psi();...

Yes, it'll replace ninja, and is completely platform-independent. I'll look into the test suite... `cmake --build build --target run_tests` runs the test suite, but it'll be preferably to be able...

@dstebila Thanks, that's good to know, I didn't know we can use the flag without a number