implement operation equivalent operation qft1p QFT quantum fourier transform in word operation apply P time effect apply QFT you implement require transformation global phaseyour operation follow inputs integer P 2 le P le 8 register type LittleEndian wrapper type array qubit encode unsigned integer littleendian format significant bit write corresponding array element index 0 if need convert array type unwrap operator let qubitarray inputregister the register contain 7 qubit the output solution state leave input qubitsYour code follow signature note operation Adjoint control variant define adjctl operation signature generate automatically base codenamespace solution open microsoftquantumarithmetic open microsoftquantumintrinsic operation Solve p Int inputregister LittleEndian Unit adjctl code you learn QFT kata you allow advantage library operation include QFTLE