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 state or in state. Your task is to perform necessary operations and measurements to figure out which state it was and to return 0 if it was a state, 1 if it was state or -1 if you can not decide, i.e., an "inconclusive" result. The state of the qubit after the operations does not matter. Note that these states are not orthogonal, and thus can not be distinguished perfectly. In each test your solution will be called 10000 times, and your goals are: In each test and states will be provided with 50% probability. 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 |
40042534 |
sragavan |
C2 |
July 6, 2018, 7:31 p.m. |
OK |
Q# |
TESTS |
2 |
373 |
0 |
|
2400 |
40113591 |
Malinovsky239 |
C2 |
July 9, 2018, 1:14 p.m. |
OK |
Q# |
TESTS |
2 |
374 |
0 |
|
2400 |
40053231 |
OgieKako |
C2 |
July 7, 2018, 6:50 a.m. |
OK |
Q# |
TESTS |
2 |
404 |
0 |
|
2400 |
40052057 |
vitruvius |
C2 |
July 7, 2018, 5:42 a.m. |
OK |
Q# |
TESTS |
2 |
404 |
0 |
|
2400 |
40045085 |
FLDutchman |
C2 |
July 6, 2018, 9:35 p.m. |
OK |
Q# |
TESTS |
2 |
404 |
0 |
|
2400 |
40062052 |
jonathanpaulson |
C2 |
July 7, 2018, 1:12 p.m. |
OK |
Q# |
TESTS |
2 |
405 |
0 |
|
2400 |
40053910 |
ukikagi |
C2 |
July 7, 2018, 7:24 a.m. |
OK |
Q# |
TESTS |
2 |
405 |
0 |
|
2400 |
40045338 |
fagu |
C2 |
July 6, 2018, 9:50 p.m. |
OK |
Q# |
TESTS |
2 |
405 |
0 |
|
2400 |
40041236 |
f4ded4k |
C2 |
July 6, 2018, 6:41 p.m. |
OK |
Q# |
TESTS |
2 |
405 |
0 |
|
2400 |
40041118 |
sblazes |
C2 |
July 6, 2018, 6:36 p.m. |
OK |
Q# |
TESTS |
2 |
405 |
0 |
|
2400 |
remove filters
Back to search problems