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 which are guaranteed to be in one of two basis states on N qubits. You are also given two bitstrings bits0 and bits1 which describe these basis states. Your task is to perform necessary operations and measurements to figure out which state it was and to return 0 if it was the state described with bits0 or 1 if it was the state described with bits1. The state of the qubits after the operations does not matter. You have to implement an operation which takes the following inputs: An array of boolean values represents a basis state as follows: the i-th element of the array is true if the i-th qubit is in state , and false if it is in state . For example, array [true; false] describes 2-qubit state . 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 |
39809977 |
Aksenov239 |
F |
July 1, 2018, 12:45 a.m. |
OK |
Q# |
TESTS |
10 |
234 |
0 |
|
2400 |
39780921 |
miniluigi |
F |
June 29, 2018, 8:01 p.m. |
OK |
Q# |
TESTS |
10 |
234 |
0 |
|
2400 |
39870302 |
njuwfang |
F |
July 2, 2018, 1:54 p.m. |
OK |
Q# |
TESTS |
10 |
249 |
0 |
|
2400 |
39868403 |
MikeVasmer |
F |
July 2, 2018, 12:45 p.m. |
OK |
Q# |
TESTS |
10 |
249 |
0 |
|
2400 |
39867216 |
Sisu |
F |
July 2, 2018, 12:03 p.m. |
OK |
Q# |
TESTS |
10 |
249 |
0 |
|
2400 |
39864602 |
dp_1 |
F |
July 2, 2018, 10:15 a.m. |
OK |
Q# |
TESTS |
10 |
249 |
0 |
|
2400 |
39854326 |
tafit3 |
F |
July 2, 2018, 1:37 a.m. |
OK |
Q# |
TESTS |
10 |
249 |
0 |
|
2400 |
39853941 |
squirtgun |
F |
July 2, 2018, 1:02 a.m. |
OK |
Q# |
TESTS |
10 |
249 |
0 |
|
2400 |
39853528 |
RRR13 |
F |
July 2, 2018, 12:25 a.m. |
OK |
Q# |
TESTS |
10 |
249 |
0 |
|
2400 |
39814899 |
dragoon |
F |
July 1, 2018, 7:35 a.m. |
OK |
Q# |
TESTS |
10 |
249 |
0 |
|
2400 |
remove filters
Back to search problems