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 two-qubit unitary transformation: either I otimes X (the X gate applied to the second qubit and no effect on the first qubit) or the CNOT gate with the first qubit as control and the second qubit as target. 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 I otimes X or 1 if it was the CNOT 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 two-qubit operation unitary as an input and returns an integer. The operation unitary will accept an array of qubits as input, but it will fail if the array is empty or has one or more than two qubits. 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 |
83881679 |
surajchip2 |
A4 |
June 15, 2020, 11:52 p.m. |
OK |
Q# |
TESTS |
1 |
93 |
0 |
|
|
83574340 |
BeyondPerception |
A4 |
June 13, 2020, 3:44 a.m. |
OK |
Q# |
TESTS |
1 |
93 |
0 |
|
|
83879867 |
thesag66 |
A4 |
June 15, 2020, 10:20 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83842401 |
Victorkras2008 |
A4 |
June 15, 2020, 12:52 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83816062 |
Hash_Mallow |
A4 |
June 15, 2020, 6:38 a.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83810849 |
sasirekha3 |
A4 |
June 15, 2020, 5:08 a.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83758237 |
sohanuzzamansoad |
A4 |
June 14, 2020, 2:51 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83697677 |
wilwxk |
A4 |
June 13, 2020, 8:11 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83616053 |
goel_nilesh |
A4 |
June 13, 2020, 1:38 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
83561550 |
mareksom |
A4 |
June 12, 2020, 8:15 p.m. |
OK |
Q# |
TESTS |
1 |
108 |
0 |
|
|
remove filters
Back to search problems