Skip to main content

All Questions

1 vote
1 answer
104 views

How do you apply the Hadamard function to a register of qubits in Q#?

I am learning Q# and am trying to create Deutsch's algorithm. My code seems to have an issue since I'm still learning. The code recognizes that line 3 contains an error. Can someone tell me what I am ...
Peter Tsagalis's user avatar
3 votes
1 answer
111 views

What all parameters can we take into account when comparing different quantum programming languages

I am planning to write a paper which compares Qiskit and Q# in the following circuits/algorithms Bell circuits Controlled swap to test similarity of two registers Phase kickback between two qubits ...
Aryan Arora's user avatar
1 vote
2 answers
103 views

May I deploy my C# code to Q# Azure quantum computing?

I have a code like this ...
Tran Duc Toan's user avatar
1 vote
1 answer
219 views

How to create a q# operation to generate a random number from 1 to max?

I have the following problem: I want to create a q# operation for generating a random integer from 1 to max and return the generated number. What algorithm do I need? What does the q# code look like? ...
user avatar
3 votes
1 answer
675 views

Counting in Q#: number of solutions

I have this program derived from Microsoft Quantum Katas for counting (see here): ...
Fabrizio Riguzzi's user avatar
14 votes
1 answer
8k views

How many logical qubits are needed to run Shor's algorithm efficiently on large integers ($n > 2^{1024}$)?

First, I know there are differences in logical qubits and physical qubits. It takes more physical qubits for each logical qubit due to quantum error. Wikipedia states that it takes quantum gates of ...
LeWoody's user avatar
  • 922
2 votes
1 answer
137 views

An algorithm with the Hadamard operator

My goal in writing this algorithm in Q# was that func would either output (1,2) or (10,20), ...
qubb's user avatar
  • 21
6 votes
2 answers
551 views

Quantum counting in Q#

I cannot seem to get an estimate for the number of solutions using the quantum counting algorithm described in Nielsen and Chuang, i.e. phase estimation with the Grover iteration acting as $U$. I try ...
nikojpapa's user avatar
  • 501
2 votes
1 answer
389 views

How to add two integers in Q#?

I have programmed in C++, but I am interested in writing quantum programs. I have some experience with Microsoft's Q#, and I know about the canonical Shor's and Grover's algorithms. Can anyone tell ...
quantomm's user avatar