Questions tagged [q#]

Q# is a domain-specific programming language used to express quantum algorithms. This tag should be used for questions related to creating/programming quantum algorithms using the 'Q#' language. If the question is unrelated to, or arising from some non-quantum aspect of Q#, it might be better to ask on StackOverflow. If appropriate, also use the [programming] tag.

Filter by
Sorted by
Tagged with
12 votes
3 answers

Big Endian vs. Little Endian in Qiskit

I've noticed that Q# favors Little Endian. Meaning that most operations are designed for this type of encoding. Is is it the same with Qiskit?
Sorin Bolos's user avatar
14 votes
1 answer

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
  • 844
3 votes
1 answer

Counting in Q#: number of solutions

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

Ground state energy estimation - VQE vs. Ising vs. Trotter–Suzuki

Disclaimer: I am a software engineer who is curious about quantum computing. Although I understand some basic concepts, theory and math behind it, I am by no means experienced in this domain. I am ...
Anurag Bhandari's user avatar
0 votes
3 answers

Quantum Katas - Tutorials - SingleQubitGates - Exercise 2 - GlobalPhaseI

Program.qs ...
theRomanMercury's user avatar
8 votes
2 answers

How does one obtain amplitude information in Q#?

Is it possible to obtain amplitude information (in lexicographic ordering) for a particular qubit register in Q#? For example, in the following code: ...
jman's user avatar
  • 443
7 votes
2 answers

How to construct the "Inversion About the Mean" operator?

It seems like it should be simple, based on how Nielsen and Chuang talk about it, but I cannot seem to correctly implement the Inversion About the Mean operator ($2|\psi\rangle \langle\psi| - \mathcal{...
nikojpapa's user avatar
  • 501
7 votes
3 answers

How do you send an array of qubits to an operation in Q#?

I have the following operation in my .qs files: operation myOp(qubits: Qubit[]) : () { // uses elements from the qubit array } How do I send an ...
Mahathi Vempati's user avatar
5 votes
3 answers

Overview of Cirq, qiskit, q#, ibmq(circuit board), other [closed]

What is the difference between these frameworks or languages? What are the pros and cons of each of these? Do you know any similar framework/platform/language that gives some more advantages?
Rishwi binnu's user avatar
5 votes
2 answers

Checking value of variable using quantum approach

A beginner question after watching few videos. Say, var=a; var can be either of two values, ...
Dr.PB's user avatar
  • 183
4 votes
2 answers

Q# Error: No namespace with the name "Microsoft.Quantum.MachineLearning" exists

I'm having trouble getting the namespace Microsoft.Quantum.MachineLearning. Here is an example Q# code: ...
MetaInformation's user avatar
3 votes
3 answers

Unit testing for quantum programs?

Does unit testing on real quantum computers make sense as any observation in the quantum system can cause the system to loose its superposition state?
Coder's user avatar
  • 293
2 votes
2 answers

Problems with Q# installing

I don't know if this is the right place to ask this question. I just thought it would be a place where people knew what they are doing. If there is a better place to look for answers (stackoverflow ...
BrockenDuck's user avatar
1 vote
1 answer

Best way to test the performance of a simulated quantum algorithm in Q#

for a student report about solving graph coloring with Grover's Algorithm, I have to talk about the performance of simulated Grover's Algorithm to solve graph coloring. I don't really know how to ...
BrockenDuck's user avatar