beratyenilen / qc-ga

Apache License 2.0
4 stars 1 forks source link

Combining Gates #4

Open beratyenilen opened 3 years ago

beratyenilen commented 3 years ago

It might be good to have a way of combining several gates into single rotation, or getting rid of the unnecessary gates in the circuit. This can be a genetic operator, or simply can be done on all the solutions once in every 10 generations or so. Or it might be possible to do this quickly with projectQ. I should look it up.

beratyenilen commented 3 years ago

When we set the optimization_level to 2 or 3 in Qiskit transpile, qubit mapping can change. I need to compansate it before finalizing the Candidate.optimize()