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 angle theta (in radians, 0.01 pi <= theta <= 0.99 pi ) and an operation that implements a single-qubit unitary transformation: either the Rz( theta) gate or the Ry( theta) 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 Rz( theta) gate or 1 if it was the Ry( theta) gate. You are allowed to apply the given operation and its adjoint/controlled variants as many times as you need (within the time limit). You have to implement an operation which takes a floating-point number and 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 |
84579324 |
xwoqlk |
A5 |
June 21, 2020, 11:37 a.m. |
OK |
Q# |
TESTS |
16 |
202 |
716800 |
|
|
84671362 |
gopald |
A5 |
June 22, 2020, 2:28 p.m. |
OK |
Q# |
TESTS |
16 |
202 |
819200 |
|
|
84383929 |
jerry |
A5 |
June 20, 2020, 5:51 a.m. |
OK |
Q# |
TESTS |
16 |
217 |
819200 |
|
|
84541663 |
bertho_coder |
A5 |
June 21, 2020, 2:43 a.m. |
OK |
Q# |
TESTS |
16 |
217 |
921600 |
|
|
84564594 |
angiebird |
A5 |
June 21, 2020, 8:20 a.m. |
OK |
Q# |
TESTS |
16 |
218 |
716800 |
|
|
84400421 |
Moririn2528 |
A5 |
June 20, 2020, 9:36 a.m. |
OK |
Q# |
TESTS |
16 |
218 |
819200 |
|
|
84570330 |
Djohnnie |
A5 |
June 21, 2020, 9:35 a.m. |
OK |
Q# |
TESTS |
16 |
218 |
921600 |
|
|
84372191 |
masayoshi64 |
A5 |
June 20, 2020, 12:31 a.m. |
OK |
Q# |
TESTS |
16 |
218 |
921600 |
|
|
84375684 |
tteu.ingog |
A5 |
June 20, 2020, 2:52 a.m. |
OK |
Q# |
TESTS |
16 |
233 |
921600 |
|
|
84356234 |
GeoffreyY |
A5 |
June 19, 2020, 6:24 p.m. |
OK |
Q# |
TESTS |
16 |
233 |
921600 |
|
|
remove filters
Back to search problems