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 N qubits (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89N xe2 x80 x89 xe2 x89 xa4 xe2 x80 x898) which are guaranteed to be in one of the two states: Your task is to perform necessary operations and measurements to figure out which state it was and to return 0 if it was state or 1 if it was W state. The state of the qubits after the operations does not matter. You have to implement an operation which takes an array of N qubits 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 |
40035955 |
Arterm |
B1 |
July 6, 2018, 4:28 p.m. |
OK |
Q# |
TESTS |
7 |
265 |
0 |
|
2000 |
40099234 |
IanCastro |
B1 |
July 9, 2018, 3:13 a.m. |
OK |
Q# |
TESTS |
7 |
280 |
0 |
|
2000 |
40071986 |
Kurpilyansky |
B1 |
July 7, 2018, 11:47 p.m. |
OK |
Q# |
TESTS |
7 |
280 |
0 |
|
2000 |
40062293 |
PavelKunyavskiy |
B1 |
July 7, 2018, 1:24 p.m. |
OK |
Q# |
TESTS |
7 |
280 |
0 |
|
2000 |
40058376 |
kobae964 |
B1 |
July 7, 2018, 10:40 a.m. |
OK |
Q# |
TESTS |
7 |
280 |
0 |
|
2000 |
40056797 |
apres |
B1 |
July 7, 2018, 9:27 a.m. |
OK |
Q# |
TESTS |
7 |
280 |
0 |
|
2000 |
40055823 |
acast00 |
B1 |
July 7, 2018, 8:46 a.m. |
OK |
Q# |
TESTS |
7 |
280 |
0 |
|
2000 |
40054710 |
tilde |
B1 |
July 7, 2018, 7:58 a.m. |
OK |
Q# |
TESTS |
7 |
280 |
0 |
|
2000 |
40046958 |
tanzaku |
B1 |
July 7, 2018, 12:07 a.m. |
OK |
Q# |
TESTS |
7 |
280 |
0 |
|
2000 |
40046545 |
rst76 |
B1 |
July 6, 2018, 11:26 p.m. |
OK |
Q# |
TESTS |
7 |
280 |
0 |
|
2000 |
remove filters
Back to search problems