cda-tum / mqt-bench

MQT Bench - A MQT Tool for Benchmarking Quantum Software Tools
https://www.cda.cit.tum.de/mqtbench/
MIT License
71 stars 14 forks source link

Qubit Allocation for Mapped Layer using tket #167

Closed burgholzer closed 1 year ago

burgholzer commented 1 year ago

I just stumbled upon this: tket doesn't perform any kind of full ancilla allocation as Qiskit does when mapping quantum circuits to architectures. As a result, the mapped circuits resulting from tket contain quantum registers with varying size; depending on how the circuit was routed. For example, if the largest qubit index being used in the circuit is 32, then the circuit mapped to the 127-qubit ibm_washington architecture will still only have a qreg node[32]; definition.

While this is not urgent, I found this surprising and believe it would be good to resolve this disparity between the files generated by qiskit and the files generated by tket.

nquetschlich commented 1 year ago

see https://github.com/CQCL/tket/issues/770, https://github.com/CQCL/tket/issues/774, and https://cqcl.github.io/tket/pytket/api/circuit_class.html#pytket.circuit.Circuit.add_blank_wires.