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
With some recent changes, a circuit that gets transpiled onto a coupling_map now will contain information about which qubits of the original (virtual) circuit correspond to which qubits of the final (physical) circuit. For example:
fromqiskit.circuitimportQuantumRegister, QuantumCircuitfromqiskit.compilerimporttranspilefromqiskit.test.mockimportFakeTokyotokyo=FakeTokyo()
v=QuantumRegister(3)
circuit=QuantumCircuit(v)
circuit.h(v[0])
circuit.cx(v[0], v[1])
circuit.cx(v[0], v[2])
# do a GHZ state preparation on qubits 3, 7, 11, using ancillas for swapnew_circuit=transpile(circuit, tokyo, initial_layout=[3, 7, 11])
This request is to show the layout information next to each qubit. This can be found via:
Note: the fact that we have q0, q1, .. q19 is an artifact of not being able to create register-less circuits currently. Eventually this should just be shown as physical qubits 0, 1, ..., 19.
The text was updated successfully, but these errors were encountered:
Fixes#2739
This PR adds layout support for all the drawers, with the option with_layout=bool.
* from unittest.mock import patch
* .
* util
* options
* docstring
* text
* done with text
* more tests
* remove utils function
* mpl
* remove namedtuple
* mpl
* latex
* lint
* flip order
* space in latex
* utils
* lint
* layout -> _layout
* Revert "layout -> _layout"
This reverts commit 576c243.
* layout -> _layout
* merge
* CHANGELOG
* flip layout
* default is True, so no need to have arg
* new test
* changelog
* fixing text
* adjust tests
* fixing latex
* fix mpl
* add test
* name classical register
* __str__
* single_line
* optimization_level
* print result
* avoid paging
faisaldebouni
pushed a commit
to faisaldebouni/qiskit-terra
that referenced
this issue
Aug 5, 2020
FixesQiskit#2739
This PR adds layout support for all the drawers, with the option with_layout=bool.
* from unittest.mock import patch
* .
* util
* options
* docstring
* text
* done with text
* more tests
* remove utils function
* mpl
* remove namedtuple
* mpl
* latex
* lint
* flip order
* space in latex
* utils
* lint
* layout -> _layout
* Revert "layout -> _layout"
This reverts commit 576c243.
* layout -> _layout
* merge
* CHANGELOG
* flip layout
* default is True, so no need to have arg
* new test
* changelog
* fixing text
* adjust tests
* fixing latex
* fix mpl
* add test
* name classical register
* __str__
* single_line
* optimization_level
* print result
* avoid paging
With some recent changes, a
circuit
that gets transpiled onto acoupling_map
now will contain information about which qubits of the original (virtual) circuit correspond to which qubits of the final (physical) circuit. For example:This request is to show the layout information next to each qubit. This can be found via:
So I envision something like:
Note: the fact that we have q0, q1, .. q19 is an artifact of not being able to create register-less circuits currently. Eventually this should just be shown as physical qubits 0, 1, ..., 19.
The text was updated successfully, but these errors were encountered: