quants
This commit is contained in:
41
Unibw 2023/misc/quantum/README.md
Normal file
41
Unibw 2023/misc/quantum/README.md
Normal file
@@ -0,0 +1,41 @@
|
||||
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:
|
||||
...
|
||||
0
Unibw 2023/rev pwn/Hide and Seek/9c6600421a497cfaf89a336e0cef2357
Normal file → Executable file
0
Unibw 2023/rev pwn/Hide and Seek/9c6600421a497cfaf89a336e0cef2357
Normal file → Executable file
Reference in New Issue
Block a user