The QFT
module enables the creation of circuit for
QXZoo.QFT.apply_qft!(cct::QXZoo.Circuit.Circ, qubit_indices::Vector)
QXZoo.QFT.apply_qft!(cct::QXZoo.Circuit.Circ)
QXZoo.QFT.apply_iqft!(cct::QXZoo.Circuit.Circ, qubit_indices::Vector)
QXZoo.QFT.apply_iqft!(cct::QXZoo.Circuit.Circ)
QXZoo.QFT.swap_idx(qubit_indices::Vector)
The following demonstrates the application of the QFT to a subset of qubits in the register, and the IQFT to the entire register.
using QXZoo
cct = QXZoo.Circuit.Circ(8)
QXZoo.QFT.apply_qft!(cct, collect(1:4))
QXZoo.QFT.apply_iqft!(cct)
println(cct)
for i in cct.circ_ops
println(i)
end