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 a training dataset, in which each entry is a features vector (an array of 2 real numbers) and a label 0 or 1 indicating the class to which this vector belongs. Your goal is to use this dataset to train a quantum classification model that will accurately classify a validation dataset - a different dataset generated using the same data distribution as the training one. The error rate of classifying the validation dataset using your model (the percentage of incorrectly classified samples) should be less than 5%. Your code will not be given any inputs. Instead, you should use the provided dataset file to train your model. The training dataset is represented as a JSON file and consists of two arrays, "Features" and "Labels". Each array has exactly 400 elements. Each element of the "Features" array is an array with 2 elements, each of them a floating-point number. Each element of the "Labels" array is the label of the class to which the corresponding element of the "Features" array belongs, 0 or 1. Your code should return the description of the model you 'd like to use in the following format: Your code should have the following signature: Classical preprocessing This step allows you to add new features to the data before encoding it in the quantum state and feeding it into the classifier circuit. To do this, you need to pick one of the available preprocessing methods and return a tuple of its index and its parameters. The parameters of all methods are Double[]. After the preprocessing step the resulting data is encoded in the quantum state using amplitudes encoding: element j of the data is encoded in the amplitude of basis state |j rangle . If the length of the data array is not a power of 2, it is right-padded with 0 s to the nearest power of two; the number of qubits used for encoding is the exponent of that power. Note that majority of the data analysis is going to happen "offline" before you submit the solution. The solution ha'... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
84620297 |
kfirsuli |
D1 |
June 21, 2020, 10:50 p.m. |
OK |
Q# |
TESTS |
1 |
233 |
2867200 |
|
|
84413229 |
jerry |
D1 |
June 20, 2020, 12:26 p.m. |
OK |
Q# |
TESTS |
1 |
249 |
2867200 |
|
|
84537910 |
sensaur |
D1 |
June 21, 2020, 12:35 a.m. |
OK |
Q# |
TESTS |
1 |
249 |
2969600 |
|
|
84661139 |
realhype |
D1 |
June 22, 2020, 12:24 p.m. |
OK |
Q# |
TESTS |
1 |
264 |
2867200 |
|
|
84618784 |
romd |
D1 |
June 21, 2020, 9:55 p.m. |
OK |
Q# |
TESTS |
1 |
264 |
2867200 |
|
|
84610079 |
siddhant22 |
D1 |
June 21, 2020, 6:38 p.m. |
OK |
Q# |
TESTS |
1 |
264 |
3481600 |
|
|
84388614 |
geekpradd |
D1 |
June 20, 2020, 6:58 a.m. |
OK |
Q# |
TESTS |
1 |
264 |
3891200 |
|
|
84394100 |
lucifer1004 |
D1 |
June 20, 2020, 8:13 a.m. |
OK |
Q# |
TESTS |
1 |
265 |
2764800 |
|
|
84606122 |
jerome21 |
D1 |
June 21, 2020, 5:35 p.m. |
OK |
Q# |
TESTS |
1 |
265 |
3072000 |
|
|
84375762 |
ed1d1a8d |
D1 |
June 20, 2020, 2:55 a.m. |
OK |
Q# |
TESTS |
1 |
280 |
2867200 |
|
|
remove filters
Back to search problems