41 lines
935 B
Markdown
41 lines
935 B
Markdown
Quantum
|
|
|
|
Skynet is getting more and more intelligent.
|
|
|
|
Currently it is working on some quantum stuff to make time traveling more usable.
|
|
|
|
But it seems to have a problem. At least we were able to find something it is working on.
|
|
|
|
Can you solve it?
|
|
|
|
Visit http://quantum.codectf.localos.io/
|
|
|
|
The basic auth is the same as for the scoreboard
|
|
|
|
|
|
|
|
=>
|
|
Write a correct quantum circuit with 6 qubits and 6 classical registers in OpenQASM 2.0 which produces the desired output probability distribution:
|
|
|
|
"111110": 0.1666666666,
|
|
"111101": 0.1666666666,
|
|
"111011": 0.1666666666,
|
|
"110111": 0.1666666666,
|
|
"101111": 0.1666666666,
|
|
"011111": 0.1666666666
|
|
|
|
|
|
The quality of the result is measured by summing the squares of differences between the found solution and the desired distribution and should be below 10-4.
|
|
Example input
|
|
OPENQASM 2.0;
|
|
include "qelib1.inc";
|
|
|
|
qreg q[6];
|
|
creg c[6];
|
|
|
|
// YOUR CODE GOES HERE
|
|
|
|
measure q -> c;
|
|
|
|
Your solution:
|
|
... |