Add optimal layout synthesis to Cirq

Open
#5,855 5 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@Prashik123 is already working on this.

Since Jun 24, 2026.

Assessment

This issue has not been assessed yet.

Description

area/routing area/transformers good for learning good part-time project help wanted kind/feature-request priority/p3 triage/accepted

Is your feature request related to a use case or problem? Please describe.
Cirq now has abstractions for qubit routing and an implementation of CQCs qubit routing algorithm as described in https://arxiv.org/abs/1902.08091

There is more recent work on using SMT solvers for qubit routing which has a significantly better performance in terms of number of swaps inserted, compared to CQCs heuristic routing algorithm. This work is described in https://arxiv.org/abs/2007.15671 and a corresponding implementation exists in https://github.com/tbcdebug/OLSQ

It would be nice to either add an implementation of the algorithm described in the paper to Cirq; or have a converter to/from Cirq to the OLSQ solver so that cirq users can easily route their cirq circuits using this algorithm.

This would be a good independent project for anyone who is interested in learning more about qubit routing.

What is the urgency from your perspective for this issue? Is it blocking important work?
P3 - I'm not really blocked by it, it is an idea I'd like to discuss / suggestion based on principle

Dominant language
Python
Stars
5.1k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
48

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from quantumlib/Cirq

All issues in quantumlib/Cirq

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.