Closed lewis-wright closed 1 year ago
In this particular example I think the difference in 2 qubit gate count (pre rebase) is due to the fact that Aer can run CU1 gates natively. The heavier optimisations that go via CX have more 2q gates.
These CU1 gates require 2 CX gates each to implement in general so the heavier optimisation which goes via {TK1, CX} has more two qubit gates in the resulting circuit.
This maybe isn't so surprising in this case. The gateset for AerBackend
is very broad and not very representative of a real device.
Hi all,
I'm getting a bug when using
backend.get_compiled_circuit()
for different levels ofoptimisation_level
. Essentially I'm strictly getting more single and two qubit gates whenoptimisation_level=2
as opposed to whenoptimisation_level=0
. I'm usingpytket.__version__ = '1.17.1'
, I have tried with the most up-to-date pytket version in a fresh environment as well, with the same results. Here is a code snippet that reproduces the results:Output: