Sunday, March 3, 2019
Before I finished my college, I managed to publish a paper on evolutionary computation (EC). The paper is on the encoding part. My next task is to use quantum to rewrite my algorithm. Well, there is a quantum genetic algorithm (QGA) there. However, I think with the latest decision on Q# and quantum algorithms. The paper link is here.
Saturday, January 19, 2019
After going through the quantum linear algebra, I am going to see some quantum concept by using Q#.
The first one I want to prove is measurement will collapse the qubit. I will use the AssertProb to verify the value with probability. The pseudo code is listed below:
- use H gate to set the qubit to superposition
- check the probability to 1 equals 0.5 (50%)
- measure the qubit
- check the qubit equals the measured value equals to 1 (100%). The qubit collapsed.
the code listed below: