Refactor the Cuccaro adder to use Toffoli ladders

Open
#58 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start by locating the Cuccaro adder implementation and the existing circuit primitive definitions in the repository. Read the referenced structural analysis alongside those entry points to understand the ladder boundaries and tradeoffs. Done means the adder is expressed through reusable Toffoli ladder primitives, with the existing behavior preserved and relevant tests passing.

Written by the indexing model from the issue text.

Description

enhancement
Problem or motivation

Rewrite the Cuccaro adder in terms of reusable Toffoli ladder primitives.

Separating the ladders from the surrounding adder circuit will let us swap in different ladder implementations. The structural analysis of quantum adders discusses how Toffoli ladder implementations affect circuit depth, gate count, and ancilla use.

Proposed solution

Refer to problem description.

Alternatives considered

No response

Category

Circuit primitive

Additional context

No response

Dominant language
Python
Stars
12
Forks
1
Avg merge
3d 1h
Merged PRs (30d)
19

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 Quantinuum/guppyalgos

All issues in Quantinuum/guppyalgos

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.