New answers tagged

3

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.


2

Yes, removing the ResetAll will prevent your code from running. Q# assumes that released qubits are in the 00..0 state. One option is uncomputation - essentially, applying the adjoint of the operations you've applied. For instance, The first two ancilla qubits are left unchanged by the last operation, but the last qubit has been modified and is dependent ...


2

Qiskit uses little-endian for both classical bit ordering and qubit ordering. For classical bits: A 3-bit classical register creg with value abc has creg[0]=c, creg[1]=b, creg[2]=a. For qubits: The ordering is with respect to the tensor-product structure of the state space. So a 3-qubit quantum register qreg with wave-function $|\psi\rangle = |A\otimes B\...


4

Probably the first big reference I would highlight is qsharp.community. Its a community org where we work on projects and collecting learning materials for Q#. Contributions are always welcome, so just make a PR on a repo or hop on the gitter and say hi! I'll also add that I am working on a textbook that is currently in Early Access called Learn Quantum ...


3

To get started with quantum computing in general, you need to start by learning some of the theory behind it - unlike classical programming, you don't have any intuition about what is going on from your previous experiences, so jumping right into programming might be a bit too steep. There are a lot of resources out there to help you with this, you might ...


-2

I'm not familiar with q#, but I have used qiskit extensively. Qiskit is a python package supported by IBM, so obviously you need to know python. There are many tutorials and instructive Jupyter notebooks on the qiskit syntax and even some basic quantum mechanics. A qiskit based textbook was just released. I haven't read it yet, but maybe you'll find it ...


Top 50 recent answers are included