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 identity (I gate) or the Z 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 I gate or 1 if it was the Z gate. You are allowed to apply the given operation and its adjoint/controlled variants exactly once. 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 |
83876234 |
donbasta |
A2 |
June 15, 2020, 8:30 p.m. |
OK |
Q# |
TESTS |
1 |
77 |
0 |
|
|
83792395 |
martins |
A2 |
June 15, 2020, 4:06 a.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83747654 |
m1kush |
A2 |
June 14, 2020, 12:29 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83696336 |
gurnoor6 |
A2 |
June 13, 2020, 7:48 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83596640 |
Prabowo |
A2 |
June 13, 2020, 9:31 a.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83553569 |
Growth |
A2 |
June 12, 2020, 6:08 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83553348 |
fedimser |
A2 |
June 12, 2020, 6:05 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83548118 |
Acceleraizer |
A2 |
June 12, 2020, 4:06 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83548038 |
acegikmoqsuwy2000 |
A2 |
June 12, 2020, 4:05 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83547888 |
victoragnez |
A2 |
June 12, 2020, 4:04 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
remove filters
Back to search problems