I'm told that the input register is in little-endian format. But the vscode gives me error telling me that it is wrong argument for QFT even after using a suitable converter. Am I missing something here?

    operation Task31 (qs : Qubit[]) : Unit {
        ApplyReversedOpBE(QFT, qs);

1 Answer 1


You'll need to cast your qubit array as type LittleEndian:

let LEArray = LittleEndian(qs);

A good example of this is in the QuantumKatas under Quantum Phase Estimation.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.