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
You are given N qubits ( 1 ≤ N ≤ 8 ) in zero state . You are also given two bitstrings bits 0 and bits 1 which describe two different basis states on N qubits and . Your task is to generate a state which is an equal superposition of the given basis states: You have to implement an operation which takes the following inputs: an array of qubits qs , two arrays of Boolean values bits 0 and bits 1 representing the basis states and . These arrays will have the same length as the array of qubits. bits 0 and bits 1 will differ in at least one position. 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 |
|
40045260 |
algmyr |
A3 |
July 6, 2018, 9:46 p.m. |
OK |
Q# |
TESTS |
12 |
248 |
0 |
|
1900 |
|
40037012 |
OgieKako |
A3 |
July 6, 2018, 4:50 p.m. |
OK |
Q# |
TESTS |
12 |
248 |
0 |
|
1900 |
|
40036147 |
Svlad_Cjelli |
A3 |
July 6, 2018, 4:32 p.m. |
OK |
Q# |
TESTS |
12 |
248 |
0 |
|
1900 |
|
40108702 |
Raynger |
A3 |
July 9, 2018, 10:13 a.m. |
OK |
Q# |
TESTS |
12 |
249 |
0 |
|
1900 |
|
40108353 |
yoghurtyam |
A3 |
July 9, 2018, 9:58 a.m. |
OK |
Q# |
TESTS |
12 |
249 |
0 |
|
1900 |
|
40075465 |
shimipon15 |
A3 |
July 8, 2018, 4:41 a.m. |
OK |
Q# |
TESTS |
12 |
249 |
0 |
|
1900 |
|
40071067 |
michalburger1 |
A3 |
July 7, 2018, 9:56 p.m. |
OK |
Q# |
TESTS |
12 |
249 |
0 |
|
1900 |
|
40069877 |
yeputons |
A3 |
July 7, 2018, 8:24 p.m. |
OK |
Q# |
TESTS |
12 |
249 |
0 |
|
1900 |
|
40064176 |
hkurokawa |
A3 |
July 7, 2018, 3:01 p.m. |
OK |
Q# |
TESTS |
12 |
249 |
0 |
|
1900 |
|
40058653 |
pandaman64 |
A3 |
July 7, 2018, 10:54 a.m. |
OK |
Q# |
TESTS |
12 |
249 |
0 |
|
1900 |
remove filters
Back to search problems