barcaroli / QGA

https://barcaroli.github.io/QGA/
GNU General Public License v3.0
0 stars 0 forks source link

What's the meaning of “a Pauli-X gate (optionally)” in the description? #3

Open A-Pai opened 2 weeks ago

A-Pai commented 2 weeks ago

What's the meaning of “a Pauli-X gate (optionally)” in the description? image Can we use it in vertion1.1?

barcaroli commented 2 weeks ago

The Pauli X gate acts on a single qubit. It is the quantum equivalent of the NOT gate for classical computers. In the quantum GA it is used as the mutation operator, and performs a swap of the probabilities of the two states 0 and 1. It is optional as you can decide not to apply the mutation.