rigetti / rigetti/pyquil

Discarding unwanted ancillas

Open
#186 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement :sparkles: good first issue :baby:
Dominant language
Python
Stars
1.5k
Forks
358
Avg merge
1d 58m
Merged PRs (30d)
4

Description

It'd be useful if unwanted ancillas can be dropped from a wavefunction object once they're no longer needed; lots of algorithms need big ancillary registers and it could be hard/cumbersome to read the output in these cases. E.g:

a|0000001>+b|0000010> -> a|01>+b|10>.

It'd be useful even if you had to manually declare which qubits are ancillary and only allow dropping of the totally uncomputed (i.e. all 0) registers, I think.

Contributor guide

Open the contributing guide

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.

Research direction

No file, test, or entry point is named. Start by locating the wavefunction object and its existing qubit or register manipulation APIs, then review the three-comment thread for intended semantics. Done should be defined around safely dropping declared, uncomputed all-zero ancillas while preserving the remaining amplitudes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
quantum-computing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.