Incorrect results when circuit contains implicit swaps
Closed this issue · 0 comments
yao-cqc commented
from pytket.circuit import Circuit
from pytket.extensions.qulacs import QulacsBackend
c = Circuit(2, 1).X(0).SWAP(0, 1).Measure(1, 0)
b = QulacsBackend()
d = b.get_compiled_circuit(c, optimisation_level=2)
b.run_circuit(compiled, n_shots=5)
produces incorrect results.