gate_qft: QFT

Description Usage Arguments Value

View source: R/Unitary_Gates.R

Description

The quantum Fourier transform. 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))'.

Usage

1
gate_qft(qubits, without_reverse = FALSE, inverse = FALSE)

Arguments

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.

Value

A cirq.Operation applying the QFT to the given qubits.


henry090/Cirq documentation built on June 13, 2020, 1:28 a.m.