Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tk_to_qiskit: Support of Qiskit.QuantumCircuit.Layout Attribute #123

Open
nquetschlich opened this issue Jun 20, 2023 · 2 comments
Open
Labels
circuit_conversion Issues and pull requests related to coverting qiskit circuits to pytket and vice versa enhancement New feature or request

Comments

@nquetschlich
Copy link

Hello,

in Qiskit v0.43.0 (Link: https://qiskit.org/documentation/locale/de_DE/release_notes.html#:~:text=Added%20a%20new%20attribute%2C%20layout), the layout attribute is officially introduced that stores a TranspileLayout to preserve mapping information of a compiled and mapped quantum circuit (e.g., initial_layout, input_qubit_mapping, final_layout).

I was wondering whether it is planned that pytket-qiskit's tk_to_qiskit supports/sets this attribute when transforming a quantum circuit mapped using pytket to a qiskit circuit.

@CalMacCQ
Copy link
Contributor

CalMacCQ commented Jun 23, 2023

Hi,

Interesting, I wasn't aware of this feature in qiskit until you mentioned it.

So just to clarify this would allow a circuit to be mapped/routed in pytket and then the layout information is stored as stored as an attribute in the qiskit QuantumCircuit returned by tk_to_qiskit ?

Would you find this feature useful?

@nquetschlich
Copy link
Author

Hi,

Interesting, I wasn't aware of this feature in qiskit until you mentioned it.

So just to clarify this would allow a circuit to be mapped/routed in pytket and then the layout information is stored as stored as an attribute in the qiskit QuantumCircuit returned by tk_to_qiskit ?

Would you find this fetaure useful?

Yes, that would be helpful to know after the compilation which logical qubit was initially assigned to which physical qubit. And ideally, also for the final outcome after considering necessary SWAP gates introduced during compilation to match a given device's connectivity.

@CalMacCQ CalMacCQ added the enhancement New feature or request label Aug 13, 2023
@CalMacCQ CalMacCQ added the circuit_conversion Issues and pull requests related to coverting qiskit circuits to pytket and vice versa label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
circuit_conversion Issues and pull requests related to coverting qiskit circuits to pytket and vice versa enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants