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 an operation that implements a single-qubit unitary transformation: either the H gate or the X gate. The operation will have Adjoint and Controlled variants defined. Your task is to perform necessary operations and measurements to figure out which unitary it was and to return 0 if it was the H gate or 1 if it was the X gate. You are allowed to apply the given operation and its adjoint/controlled variants at most twice. You have to implement an operation which takes a single-qubit operation 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 |
84351363 |
Xoreus |
A3 |
June 19, 2020, 5:27 p.m. |
OK |
Q# |
TESTS |
1 |
78 |
0 |
|
|
84343527 |
w_j |
A3 |
June 19, 2020, 4:10 p.m. |
OK |
Q# |
TESTS |
1 |
92 |
0 |
|
|
84346302 |
something-original |
A3 |
June 19, 2020, 4:35 p.m. |
OK |
Q# |
TESTS |
1 |
93 |
0 |
|
|
84600086 |
Abhigyan_Mishra |
A3 |
June 21, 2020, 4:06 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
84502090 |
Tanphi |
A3 |
June 20, 2020, 4:30 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
84351611 |
soon |
A3 |
June 19, 2020, 5:30 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
84350786 |
goel_nilesh |
A3 |
June 19, 2020, 5:21 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
84350568 |
geekpradd |
A3 |
June 19, 2020, 5:18 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
84347005 |
ostroumov |
A3 |
June 19, 2020, 4:41 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
84345060 |
Harnel |
A3 |
June 19, 2020, 4:24 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
remove filters
Back to search problems