qft | R Documentation |
performs the quantum Fourier Trafo on the qstate x and the specified list of qubits.
qft(x, inverse = FALSE, bits)
x |
qstate |
inverse |
boolean. If 'TRUE', perform inverse transform |
bits |
integer. list of qubits to include in the trafo. if
missing, |
Quantum Fourier Trafo
The Fourier Trafo is defined as
|j> -> 1/sqrt(N) sum_k=0^N_1 exp(2 pi i j k/N) |k>
the inverse with the oposite sign in the exponential.
a qstate
object with the quantum Fourier trafo of input x
.
x <- qstate(3)
y <- qft(x)
z <- qft(y, inverse=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.