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 N qubits in the zero state |0...0 rangle . You are also given four distinct bit vectors which describe four different basis states on N qubits | psi_i rangle . Your task is to generate a state which is an equal superposition of the given basis states: |S rangle = frac{1}{2} big( | psi_0 rangle + | psi_1 rangle + | psi_2 rangle + | psi_3 rangle big) You have to implement an operation which takes the following inputs: The operation doesn 't have an output; its "output" is the state in which it leaves the 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 |
50699497 |
TheNextJojo |
A2 |
March 2, 2019, 8:03 p.m. |
OK |
Q# |
TESTS |
26 |
233 |
3072000 |
|
|
50660213 |
FLDutchman |
A2 |
March 1, 2019, 10:21 p.m. |
OK |
Q# |
TESTS |
26 |
233 |
3072000 |
|
|
50656738 |
ollpu |
A2 |
March 1, 2019, 7:56 p.m. |
OK |
Q# |
TESTS |
26 |
233 |
3072000 |
|
|
50680448 |
Mesterli |
A2 |
March 2, 2019, 11:14 a.m. |
OK |
Q# |
TESTS |
26 |
233 |
3379200 |
|
|
50684864 |
Cams |
A2 |
March 2, 2019, 1:12 p.m. |
OK |
Q# |
TESTS |
26 |
234 |
2662400 |
|
|
50661521 |
Rpd-Strike |
A2 |
March 1, 2019, 11:48 p.m. |
OK |
Q# |
TESTS |
26 |
234 |
2867200 |
|
|
50775527 |
Freddie |
A2 |
March 4, 2019, 8:14 a.m. |
OK |
Q# |
TESTS |
26 |
234 |
3072000 |
|
|
50660706 |
PavelKunyavskiy |
A2 |
March 1, 2019, 10:47 p.m. |
OK |
Q# |
TESTS |
26 |
234 |
3072000 |
|
|
50654670 |
Tarkan |
A2 |
March 1, 2019, 7:01 p.m. |
OK |
Q# |
TESTS |
26 |
234 |
3481600 |
|
|
50675073 |
Vladyslav |
A2 |
March 2, 2019, 8:53 a.m. |
OK |
Q# |
TESTS |
26 |
248 |
3072000 |
|
|
remove filters
Back to search problems