CyberIntel ⬡ News
★ Saved ◆ Cyber Reads
← Back ◌ Quantum Computing Nov 07, 2025

What is AIRouting doing step by step?

Quantum Computing SE Archived Apr 24, 2026 ✓ Full text saved

I am trying to understand how AIRouting tool from qiskit is optimal for routing. Therefore I am trying to understand its choice of swap/ie the sequence of action applied. From what I understand in the paper it is only adding swap gates and possibly cancelling or commuting gates. Random circuit: I feed a random cnot gates circuit that I optimize first using transpilation in "translation" mode. qc_translated = transpile(qc, basis_gates=['cx'], translation_method='translator') Circuit after optimiz

Full text archived locally
✦ AI Summary · Claude Sonnet


    What is AIRouting doing step by step? Ask Question Asked 5 months ago Modified today Viewed 109 times 3 I am trying to understand how AIRouting tool from qiskit is optimal for routing. Therefore I am trying to understand its choice of swap/ie the sequence of action applied. From what I understand in the paper it is only adding swap gates and possibly cancelling or commuting gates. Random circuit: I feed a random cnot gates circuit that I optimize first using transpilation in "translation" mode. qc_translated = transpile(qc, basis_gates=['cx'], translation_method='translator') Circuit after optimization (based on transpile 'translation' mode): Then I apply AIRouting with minimal optimization : ai_routing = PassManager([AIRouting(backend_name="ibm_torino", backend=backend, optimization_level=1, layout_mode="optimize", local_mode=True,)]) routed_circuit = ai_routing.run(qc_translated) Routed circuit : When I get the result of the routing there are additional cnot gates (15 --> 17) and circuit doesn't seem to match with my original one. The level of optimization is at minimum 1 it, so it is probably due to some optimization that are added prior or after routing or even during it. How can I know what they are and how can I know what the AIRouting tool actually do step by step ? optimizationtranspile Share Improve this question Follow edited Nov 25, 2025 at 8:03 asked Nov 7, 2025 at 8:34 Maeru 312 2 bronze badges Add a comment 1 Answer Sorted by: Highest score (default) Date modified (newest first) Date created (oldest first) 0 The "Citation" section of the AI transpiling section of the documentation leads you to the preprint where you can look at the specific details of the implementation. The AIRouting pass uses a pretrained Reinforcement Learning (RL) agent to generate an equivalent circuit that respects the coupling map of the agent. It would be helpful if you clarify your question a bit more and add all the code of the specific case you mention, ideally using a code block (```). Share Improve this answer Follow answered Nov 13, 2025 at 20:53 javier 235 5 bronze badges Thank you for your answer ! I tried to clarify a bit, please tell me if it is not enough. So the reason the routed circuit isn't the initial circuit with additional swap gates is because AIRouting generates another equivalent circuit before routing ? Then is there a way to access this equivalent circuit in order to understand what is done during routing ie which swap are chosen step by step ? Otherwise is there to your knowledge a way to prevent this equivalent circuit to be used instead of the initial one ? –  Maeru Commented Nov 25, 2025 at 8:19 Add a comment Your Answer Sign up or log in Sign up using Google Sign up using Email and Password Post as a guest Name Email Required, but never shown Post Your Answer By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy. Start asking to get answers Find the answer to your question by asking. Ask question Explore related questions optimizationtranspile See similar questions with these tags. The Overflow Blog Lights, camera, open source! Black box AI drift: AI tools are making design decisions nobody asked for Related 9 Understanding the Group Leaders Optimization Algorithm 4 How is quantum transpilation scaled? 1 Using machine learning to determine a good initial mapping for a quantum circuit 3 Is it possible to get step-by-step information about qiskit transpilation? 1 Step Optimize1qGatesDecomposition in qiskit transpilation 4 How to use Qiskit translation pass manager with Clifford + T gate basis? Hot Network Questions How would three Floating Disks in a hallway behave? Why does the LXX have God declaring the firmament as "good" on the second day but the MT does not? (Genesis 1:8) Audio of the Earthset iPhone video Is strtol(str, &str, 10) legal in C99 due to restrict aliasing? Would being able to "see" the future prove the existence of a Block Universe? What is this opening called and what should I do to counter it as black? What are some good methods to remember to count the omer? Origin of the trope of humanity living underground while the surface is allegedly uninhabitable, but in reality it isn't Number shows up in worldflag Q: professor applied scaler to entire data (knn model) Should a Scrum Master prevent a Product Owner from directing technical implementation during a sprint? Why does Lean4 use intensional Type Theory when its definitional equality is undecidable anyways? Is there an easy method when applying a material to multiple faces How can this integral be proven? Can I effectively fix a stiff faucet handle without replacing the entire cartridge? Pro and cons of different ways to deserialize a stream of bytes into a C++ object Ubuntu 26.04 Any substitute for `Additional Drivers`? Append command to all superscripts and subscripts LACP vs ACTIVE_BACKUP On finding solutions to a set of 4 equations with 5 unknowns Could anything have been done in terms of extraordinary rescue attempts using aviation to save 9/11 victims? Expand product of polynomials with display of intermediate terms Faraday's Ice Pail Experiment with Large Hole Is it ok to relabel a main panel breaker? Question feed By continuing to use this website, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. By exiting this window, default cookies will be accepted. To reject cookies, select an option from below. Customize settings Cookie Consent Preference Center When you visit any of our websites, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences, or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and manage your preferences. Please note, blocking some types of cookies may impact your experience of the site and the services we are able to offer. Cookie Policy Accept all cookies Manage Consent Preferences Strictly Necessary Cookies Always Active These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information. Targeting Cookies Targeting Cookies These cookies are used to make advertising messages more relevant to you and may be set through our site by us or by our advertising partners. They may be used to build a profile of your interests and show you relevant advertising on our site or on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. Performance Cookies Performance Cookies These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance. Functional Cookies Functional Cookies These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly. Cookie List Clear checkbox label label Apply Cancel Consent Leg.Interest checkbox label label checkbox label label checkbox label label Necessary cookies only Confirm My Choices
    💬 Team Notes
    Article Info
    Source
    Quantum Computing SE
    Category
    ◌ Quantum Computing
    Published
    Nov 07, 2025
    Archived
    Apr 24, 2026
    Full Text
    ✓ Saved locally
    Open Original ↗