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 (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89N xe2 x80 x89 xe2 x89 xa4 xe2 x80 x898) in zero state . You are also given a bitstring bits which describes a non-zero basis state on N qubits . Your task is to generate a state which is an equal superposition of and the given basis state: 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. An array of boolean values represents a basis state as follows: the i-th element of the array is true if the i-th qubit is in state , and false if it is in state . For example, array [true; false] describes 2-qubit state , and in this case the resulting state should be . 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 |
40036699 |
AkashGutha |
A2 |
July 6, 2018, 4:43 p.m. |
OK |
Q# |
TESTS |
10 |
218 |
0 |
|
1900 |
40074056 |
danielhut |
A2 |
July 8, 2018, 2:48 a.m. |
OK |
Q# |
TESTS |
10 |
233 |
0 |
|
1900 |
40046669 |
krusek |
A2 |
July 6, 2018, 11:38 p.m. |
OK |
Q# |
TESTS |
10 |
233 |
0 |
|
1900 |
40046144 |
Shamsutdin |
A2 |
July 6, 2018, 10:52 p.m. |
OK |
Q# |
TESTS |
10 |
233 |
0 |
|
1900 |
40044776 |
harshbabla99 |
A2 |
July 6, 2018, 9:19 p.m. |
OK |
Q# |
TESTS |
10 |
233 |
0 |
|
1900 |
40038885 |
mikegmatthews |
A2 |
July 6, 2018, 5:33 p.m. |
OK |
Q# |
TESTS |
10 |
233 |
0 |
|
1900 |
40037132 |
Erfan.aa |
A2 |
July 6, 2018, 4:52 p.m. |
OK |
Q# |
TESTS |
10 |
233 |
0 |
|
1900 |
40035991 |
xorfire |
A2 |
July 6, 2018, 4:29 p.m. |
OK |
Q# |
TESTS |
10 |
233 |
0 |
|
1900 |
40035061 |
ania |
A2 |
July 6, 2018, 4:10 p.m. |
OK |
Q# |
TESTS |
10 |
233 |
0 |
|
1900 |
40109223 |
Leonardone |
A2 |
July 9, 2018, 10:35 a.m. |
OK |
Q# |
TESTS |
10 |
234 |
0 |
|
1900 |
remove filters
Back to search problems