You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A recent issue raised the problem of how confusing a transpiled circuit layout is. In other words, the result of transpiling circuit gives you a result_circuit in which result_circuit._layout is in the domain of circuit.
Should the transpiled circuit make the change to the flat register q or be kept in the original naming (holding the layout)?
The text was updated successfully, but these errors were encountered:
The Layout linking the physical qubits of result_circuit to the virtual ones of circuit was always necessary, though it's unfortunate that Layout makes the physical qubits harder to work with in the output.
That said, the spirit of the problem should have been solved by #10835, so the TranspileLayout class that's now the public QuantumCircuit.layout field includes methods to get things like the initial layout suitable for recompilation.
A recent issue raised the problem of how confusing a transpiled circuit layout is. In other words, the result of transpiling
circuit
gives you aresult_circuit
in whichresult_circuit._layout
is in the domain ofcircuit
.Should the transpiled circuit make the change to the flat register
q
or be kept in the original naming (holding the layout)?The text was updated successfully, but these errors were encountered: