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 Rz gate or the R1 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 gate or 1 if it was the R1 gate. You are allowed to apply the given operation and its adjoint/controlled variants exactly once (you can pass to it any rotation angle that you choose). You have to implement an operation which takes a single-qubit operation unitary as an input and returns an integer. The operation unitary will accept two parameters (similarly to Rz and R1 intrinsic gates): the first parameter is the rotation angle and the second parameter is the qubit to which the rotation is applied. 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 |
84351448 |
claretgrace0801 |
A4 |
June 19, 2020, 5:28 p.m. |
OK |
Q# |
TESTS |
1 |
124 |
0 |
|
|
84345025 |
_R_boukensha |
A4 |
June 19, 2020, 4:23 p.m. |
OK |
Q# |
TESTS |
1 |
124 |
0 |
|
|
84585260 |
vvkptil |
A4 |
June 21, 2020, 1:04 p.m. |
OK |
Q# |
TESTS |
1 |
139 |
0 |
|
|
84570994 |
uchu.engineer |
A4 |
June 21, 2020, 9:44 a.m. |
OK |
Q# |
TESTS |
1 |
139 |
0 |
|
|
84539563 |
Kopali |
A4 |
June 21, 2020, 1:38 a.m. |
OK |
Q# |
TESTS |
1 |
139 |
0 |
|
|
84371043 |
barrettotte |
A4 |
June 19, 2020, 11:41 p.m. |
OK |
Q# |
TESTS |
1 |
139 |
0 |
|
|
84362549 |
meooow |
A4 |
June 19, 2020, 7:54 p.m. |
OK |
Q# |
TESTS |
1 |
139 |
0 |
|
|
84357890 |
prathmesh_01 |
A4 |
June 19, 2020, 6:45 p.m. |
OK |
Q# |
TESTS |
1 |
139 |
0 |
|
|
84347893 |
yhchang3 |
A4 |
June 19, 2020, 4:51 p.m. |
OK |
Q# |
TESTS |
1 |
139 |
0 |
|
|
84345505 |
mees |
A4 |
June 19, 2020, 4:28 p.m. |
OK |
Q# |
TESTS |
1 |
139 |
0 |
|
|
remove filters
Back to search problems