shall we include quantum Fourier Trafo in package?
urbach opened this issue · comments
see vignettes/qft.Rmd
Very nice that it works for the general case now!
Yes, I would say that we should include it. It makes the package much more powerful for external users should we publish it. And I don't think it harms much that the students can see an R-implementation and not only pseudo-code. The interesting part will be to implement something like breaking RSA that requires the qft but where the qft itself is not the challenging part.
Very nice that it works for the general case now!
Yes, I would say that we should include it. It makes the package
much more powerful for external users should we publish it. And I
don't think it harms much that the students can see an
R-implementation and not only pseudo-code. The interesting part will
be to implement something like breaking RSA that requires the qft
but where the qft itself is not the challenging part.
okay, agreed. I have an even more general version, see
phase_estimation.Rmd, which works on a sub-set of the qubits. The
phase estimation doesn't work yet, though...
It does now.
It does now.
Of course, the 2 pi... The order I had also realised already. thanks.
it does not work for general alpha, though, because then we don't get a product state, still a bit confused.
It did. 4 digits just don't allow precise results because only two of them are really reliable. I added a few comments.
Let's discuss that in person...
--
CU Mobil, www.carsten-urbach.eu
I think the measurement was still wrong. Now it should be the correct
projective measurement.
Maybe we also need a version of `measure` which measures a range of
qubits. Currently its only either a single one or the whole state.