Use Controllable and Daggerable in MultiCntrlFunction

Open
#91 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
25/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start with MultiCntrlFunction and its operation and cnx_kernel parameters, and read how the current self-inverse kernel is used for uncomputation. The issue says this waits on the CnX functions being refactored as modifiers (#90), so check that first. Done means the kernel is typed as Daggerable, uncomputation uses its dagger, and the gate-count and cancellation claims are verified.

Written by the indexing model from the issue text.

Description

Update MultiCntrlFunction so operation accepts a Controllable and cnx_kernel accepts a Daggerable. Use the kernel's dagger for uncomputation instead of requiring a self-inverse kernel.

This should be done once the the CnX Functions are refactored as modifers.

Document that Daggerable partial CNX implementations could be used in this construction to save half the gates, and verify the cancellation conditions and gate savings.

Follow-up to #90.

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.