Solutions are presented as using the least memory and the fastest execution time. It also takes the top
10 most recent solutions from each language. If you want to limit to a specific index, click the
"Solved" button and go to that problem.
Problems
B'You are given a qubit which is guaranteed to be either in or in state. Your task is to perform necessary operations and measurements to figure out which state it was and to return 1 if it was a state or -1 if it was state. The state of the qubit after the operations does not matter. You have to implement an operation which takes a qubit as an input and returns an integer. Your code should have the following signature: '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
39779888 |
MegaBidoof |
D |
June 29, 2018, 7:24 p.m. |
OK |
Q# |
TESTS |
1 |
170 |
0 |
|
2300 |
39789660 |
sarkar |
D |
June 30, 2018, 6:35 a.m. |
OK |
Q# |
TESTS |
1 |
171 |
0 |
|
2300 |
39777717 |
googlweknoall |
D |
June 29, 2018, 6:14 p.m. |
OK |
Q# |
TESTS |
1 |
171 |
0 |
|
2300 |
39851497 |
gonchenko |
D |
July 1, 2018, 9:16 p.m. |
OK |
Q# |
TESTS |
1 |
186 |
0 |
|
2300 |
39851479 |
ania |
D |
July 1, 2018, 9:15 p.m. |
OK |
Q# |
TESTS |
1 |
186 |
0 |
|
2300 |
39816956 |
Kolrabbut |
D |
July 1, 2018, 9:13 a.m. |
OK |
Q# |
TESTS |
1 |
186 |
0 |
|
2300 |
39812321 |
koyumeishi |
D |
July 1, 2018, 5:05 a.m. |
OK |
Q# |
TESTS |
1 |
186 |
0 |
|
2300 |
39811557 |
Trote_w |
D |
July 1, 2018, 3:46 a.m. |
OK |
Q# |
TESTS |
1 |
186 |
0 |
|
2300 |
39807822 |
jonathanpaulson |
D |
June 30, 2018, 9:24 p.m. |
OK |
Q# |
TESTS |
1 |
186 |
0 |
|
2300 |
39807329 |
alex20030190 |
D |
June 30, 2018, 8:54 p.m. |
OK |
Q# |
TESTS |
1 |
186 |
0 |
|
2300 |
remove filters
Back to search problems