A quantum circuit simulator in Swift
In this repository you can find a quantum circuit simulator written in Swift and speeded up with Accelerate.framework. Along side the simulator there is also a genetic algorithm to automatically generate circuits able to solve a given quantum problem.
The code written so far is mostly based on the content of: Quantum Computing for Computer Scientists, with a few tips from Automatic Quantum Computer Programming: A Genetic Programming Approach. It is also inspired by IBM Qiskit.
To create a circuit gate by gate:
DeutschAlgorithm.playground for the actual code.
Genetic.playground to see how to configure the genetic algorithm to produce a quantum circuit: