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 Z gate or the S 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 Z gate or 1 if it was the S gate. You are allowed to apply the given operation and its adjoint/controlled variants exactly 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 |
83782486 |
Baba |
A3 |
June 14, 2020, 9:33 p.m. |
OK |
Q# |
TESTS |
1 |
93 |
0 |
|
|
83752194 |
Rotsor |
A3 |
June 14, 2020, 1:34 p.m. |
OK |
Q# |
TESTS |
1 |
93 |
0 |
|
|
83825586 |
mk_yoshi |
A3 |
June 15, 2020, 8:59 a.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83704558 |
amir_e |
A3 |
June 13, 2020, 11:35 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83597364 |
Prabowo |
A3 |
June 13, 2020, 9:40 a.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83583968 |
Spheniscine |
A3 |
June 13, 2020, 6:37 a.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83571680 |
tanaka_733 |
A3 |
June 13, 2020, 2:25 a.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83555082 |
aditya.verma |
A3 |
June 12, 2020, 6:29 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83790346 |
box_of_donuts |
A3 |
June 15, 2020, 3:07 a.m. |
OK |
Q# |
TESTS |
1 |
109 |
0 |
|
|
83703144 |
Math_Master |
A3 |
June 13, 2020, 10:36 p.m. |
OK |
Q# |
TESTS |
1 |
109 |
0 |
|
|
remove filters
Back to search problems