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 or 1 if it was state. 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 1000 times, and your goal is to get a correct answer at least 80% of the times. 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 |
40047783 |
physux |
C1 |
July 7, 2018, 1:14 a.m. |
OK |
Q# |
TESTS |
2 |
217 |
0 |
|
2300 |
40095208 |
mxu |
C1 |
July 8, 2018, 9:12 p.m. |
OK |
Q# |
TESTS |
2 |
233 |
0 |
|
2300 |
40069464 |
pimmo |
C1 |
July 7, 2018, 7:57 p.m. |
OK |
Q# |
TESTS |
2 |
233 |
0 |
|
2300 |
40048801 |
snuffkin |
C1 |
July 7, 2018, 2:25 a.m. |
OK |
Q# |
TESTS |
2 |
233 |
0 |
|
2300 |
40046748 |
f4ded4k |
C1 |
July 6, 2018, 11:46 p.m. |
OK |
Q# |
TESTS |
2 |
233 |
0 |
|
2300 |
40046373 |
alex20030190 |
C1 |
July 6, 2018, 11:12 p.m. |
OK |
Q# |
TESTS |
2 |
233 |
0 |
|
2300 |
40045201 |
fagu |
C1 |
July 6, 2018, 9:43 p.m. |
OK |
Q# |
TESTS |
2 |
233 |
0 |
|
2300 |
40045102 |
sirknightingfail |
C1 |
July 6, 2018, 9:36 p.m. |
OK |
Q# |
TESTS |
2 |
233 |
0 |
|
2300 |
40040571 |
panacekcz |
C1 |
July 6, 2018, 6:18 p.m. |
OK |
Q# |
TESTS |
2 |
233 |
0 |
|
2300 |
40035443 |
Wielomian |
C1 |
July 6, 2018, 4:18 p.m. |
OK |
Q# |
TESTS |
2 |
233 |
0 |
|
2300 |
remove filters
Back to search problems