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.
163
questions
1
vote
1
answer
60
views
Probable bug in DumpMachine() Quantum API function of Microsoft Quantum Platform
According to help from Microsoft Learn, the binding of Qubit[] array to its equivalent ket vector representation is such that the qubit with index 0 becomes the ...
0
votes
1
answer
20
views
How to calculate 'crossing-prefactor' for AQRE
We see that the crossing-prefactor for surface codes in Azure Quantum Resource Estimator is 0.03, and it is cited in this paper https://arxiv.org/pdf/1208.0928, however, how is there a formula for ...
1
vote
1
answer
34
views
Changing the 'compilerRunTimeoutMs' timeout variable on Azure Quantum Resource Estimator
Is there any way to change the variable 'compilerRunTimeoutMs' so that I can increase the timeout for Azure Quantum Resource Estimator. The only way that seems to be an option currently is to build ...
1
vote
1
answer
33
views
Migration guide from Classic QDK to Modern QDK for Q#
Is there any sort of migration guide from the classic QDK to the modern QDK. When I am trying to use functions, I keep running into this
This documentation refers to the Classic QDK, which has been ...
0
votes
1
answer
32
views
Strange non-normal distribution histogram when applying Hadamard gate in a loop
Recently I have explored Q# quantum programming language. My basic test was this,- for 10000 times in a loop reset qubit to ...
1
vote
1
answer
43
views
Microsoft Classic QDK simulator
Is it possible to change the simulator used by the Classic QDK with Python simulation ?
It's reported that Classic QDK supports several simulators (sparse, full-state...). Which one is used when ...
2
votes
1
answer
176
views
Is there a way to implement Smolin's variant of Shor's algorithm?
I'm currently investigating Shor's algorithm and especially Smolin's variant, that he described in his article: https://arxiv.org/abs/1301.7007
My applied changes according to Smolin's variant are ...
1
vote
1
answer
27
views
Is there a way to measure a time spent for simulation? Does Q# support something like this?
I want to measure the time spent for simulation of different algorithms to make some assumption about their efficiency.
I use Microsoft Azure Quantum SDK and VS Code setup.
1
vote
1
answer
81
views
How write a marking oracle if greater than with Q#?
I'm trying to write a code to find a minimum in a list. I follow this paper : A quantum algorithm for finding the minimum. So I need to write an operator to mark the case $T
[j] < T[y]$.
My idea is ...
1
vote
1
answer
33
views
Understanding command Ignore in Q#
Consider the following code on which I want to run the resource estimator:
...
1
vote
1
answer
24
views
Applying Hadamard on inexistent qubit doesn't make Q# compilation fail: why?
This question is perhaps a bit unusual as I am not complaining that my code doesn't compile but rather that it compiles ;)
Consider the following code:
...
1
vote
1
answer
64
views
Q#: how to write an algorithm in modular form (I don't understand the syntax and the documentation is a bit obscure)
I would like to make a resource estimate based on Azure resource estimator.
However, the circuits I am interested in depend on some classical parameters: for this reason, I would like to make a ...
0
votes
1
answer
55
views
Displaying the circuit diagram associated to a circuit in Q#+Python
I am learning the Q# language, and my script is in Python (I am using the online Azure interface).
I created an example quantum circuit on three qubits:
...
1
vote
1
answer
34
views
DumpRegister sometimes blank?
I'm just getting into the baffling world of Quantum Computing so forgive me if this is straightforward...
I'm using Microsoft's Q# simulator so I know I'm allowed to peek into the internals of a Qubit ...
1
vote
1
answer
53
views
How can I get the source code of “RUS” and “PQF”
Currently, I’m studying these two papers:
“Efficient Synthesis of Universal Repeat-Until-Success Circuits” and
“Efficient synthesis of probabilistic quantum circuits with fallback”.
I want the source ...