[Routing] Adding use of ancillas.

Open
#5,862 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@shawn-peng is already working on this.

Since Aug 30, 2023.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start by locating and reading MappingManager and the routing code that updates the logical-to-physical mapping; the issue does not name files or tests. Review the linked design document for the proposed allocation strategy. Done means an ancilla allocation strategy supports user-specified inputs and a MappingManagerWithAncillas subclass can add and remove ancillary physical qubits in the mapping and routed circuit.

Written by the indexing model from the issue text.

Description

area/devices area/routing complexity/high good for learning good part-time project help wanted kind/task triage/accepted

Summarize the task
Enable use of ancillas to shorten the shortest path along qubits that need to be adjacent during routing.

Acceptance criteria - when is the task considered done?
Once an ancilla allocation strategy is implemented (based on some user-specificed inputs like for e.g. max_number_of_anicllas) and MappingManager is extended by a subclass MappingManagerWithAncillas that enables the adding and removing of ancillary physical qubits to the logical->physical mapping and therefore to the routed circuit.

Related
https://docs.google.com/document/d/1df9Onm0Z6ZiU_O7QYRsPtDL1WGTP3330ojEwucI0jZ8/edit#heading=h.3hodzisay0rd

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.