pdft.bases.QFTBasis#
- class pdft.bases.QFTBasis(m, n, tensors=None, code=None, inv_code=None)[source]#
Bases:
CircuitBasisQFT tensor-network basis. Mirror of
ParametricDFT.jl/src/basis.jl::QFTBasis.- __init__(m, n, tensors=None, code=None, inv_code=None)#
Methods
__init__(m, n[, tensors, code, inv_code])emit(m, n)The gate sequence of the 2D QFT on (2^m, 2^n) images: a QFT on the row qubits, then one on the column qubits.
forward_transform(pic)inverse_transform(pic)conj(tensors)throughinv_code, exactly like Julia'sbasis.inverse_code(conj.(basis.tensors)..., ...).Attributes
image_sizeinv_tensorsThe tensor list itself.
num_parametersmntensorsprogramcodeinv_code- static emit(m, n)#
The gate sequence of the 2D QFT on (2^m, 2^n) images: a QFT on the row qubits, then one on the column qubits.