Investigating Retargetability Claims for Quantum Compilers
This paper introduces a metric to evaluate the retargetability of quantum compilers and applies it to Tket, Qiskit, and ProjectQ, finding that Tket offers the highest cross-platform adaptability followed by Qiskit, while ProjectQ lags behind.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are a chef who has perfected a complex recipe. In the world of classical computing, if you wanted to cook this dish in a different kitchen, you might just need to swap out a specific brand of oven or adjust the heat slightly. The basic tools (knives, pans, stoves) are mostly the same everywhere.
But in the world of quantum computing, every kitchen is built completely differently. One kitchen might have floating islands, another might have walls made of glass, and a third might only have one specific type of stove. If you try to cook your recipe in these different kitchens without changing anything, the food will burn, or the ingredients will vanish.
This is the problem the paper tackles: Retargetability. This is a fancy word for "how easily can we take a quantum program written for one machine and make it work on a totally different machine?"
The authors of this paper wanted to answer a simple question: Which of the three most popular "quantum translators" (compilers) is the best at helping us cook our recipe in any kitchen?
The Three Contenders
The researchers tested three specific tools used by developers to translate quantum code:
- Tket
- Qiskit
- ProjectQ
How They Tested Them
Instead of just reading the manuals, the researchers created a "report card" with five specific categories to grade these tools. Think of it like judging a car not just on how fast it goes, but on how easy it is to drive, how many spare parts are available, and how well it fits different roads.
Here are the five categories they used:
- Flexibility (The Control Panel): Can the user tweak the translation process? Can they tell the compiler exactly how to handle the hardware's quirks?
- Standardization (Speaking the Same Language): Does the tool speak the common languages of the industry (like OpenQASM or QIR)? If it only speaks its own private language, it's hard to use with other tools.
- Community & Ecosystem (The Support Network): Is there a big team of people helping? Are there lots of other hardware companies that already work with this tool? Is the community active, or is the project abandoned?
- Hardware Agnosticism (The Universal Adapter): Is the tool built to be neutral, or is it secretly designed for just one specific brand of computer?
- The "Human" Test (Documentation & API): This was the most practical test. The researchers hired six students (who knew a little bit about quantum coding) and gave them a real job: Build a new "backend" (a translator) for a specific simulator.
- They had to follow the instructions and use the tools provided.
- They rated how confusing the manuals were, how easy the code was to understand, and how much they needed "hints" to get the job done.
The Results: Who Won?
The researchers combined the "Report Card" scores with the "Human Test" results to give each tool a final score out of 5.
🏆 The Winner: Tket (Score: ~4.65)
- The Metaphor: Tket is like a Master Chef's Universal Toolkit.
- Why: It was incredibly flexible, spoke all the standard languages, had a huge, active community, and was built to work with any hardware.
- The Human Test: The students found it the easiest to use. The documentation was clear, the tools were intuitive, and they barely needed any hints to build their new translator. It felt like the tool was designed with the developer in mind.
🥈 The Runner-Up: Qiskit (Score: ~4.33)
- The Metaphor: Qiskit is like a Very Popular, Well-Equipped Kitchen.
- Why: It is extremely popular and has great flexibility. However, it sometimes feels a bit more tied to its original "home" (IBM hardware) than Tket.
- The Human Test: The students did well, but they found the documentation slightly less clear than Tket's. Interestingly, the students who started with Tket found Qiskit easier, suggesting that Tket teaches you the concepts better.
🥉 Third Place: ProjectQ (Score: ~2.68)
- The Metaphor: ProjectQ is like an Old, Rusty Workshop.
- Why: While the core idea was good (it was designed to be hardware-neutral), it fell short in the real world. It lacked support for modern standards, the community had gone quiet (the project was inactive for over a year), and the documentation was sparse.
- The Human Test: This was a struggle for the students. They felt unprepared even after doing the other two tasks. The manuals were confusing, the tools were hard to navigate, and they needed a lot of hints just to get started. The skills they learned from the other tools didn't transfer well here.
The Bottom Line
The paper concludes that if you want to write quantum software that can run on different machines in the future, Tket is currently your best bet, followed closely by Qiskit. ProjectQ, while once promising, currently lags behind in terms of being "retargetable" because it lacks the active support, modern standards, and clear documentation needed to make the job easy for developers.
The authors emphasize that this is just the beginning. They created a new way to measure these tools, and they hope other researchers will use this "report card" to test even more tools in the future.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.