cirq.qft
The quantum Fourier transform.
cirq.qft(
*qubits, without_reverse: bool = False, inverse: bool = False
) -> 'cirq.Operation'
Used in the notebooks
Transforms a qubit register from the computational basis to the frequency
basis.
The inverse quantum Fourier transform is cirq.qft(*qubits)**-1
or
equivalently cirq.inverse(cirq.qft(*qubits))
.
Args |
*qubits
|
The qubits to apply the qft to.
|
without_reverse
|
When set, swap gates at the end of the qft are omitted.
This reverses the qubit order relative to the standard qft effect,
but makes the gate cheaper to apply.
|
inverse
|
If set, the inverse qft is performed instead of the qft.
Equivalent to calling cirq.inverse on the result, or raising it
to the -1.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-27 UTC."],[],[]]