tensorflow / tensorflow/quantum

Allow custom gate serialization

Open
#354 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/cirq help wanted kind/feature-request
Dominant language
Python
Stars
2.2k
Forks
665
PR merge metrics
No merged PRs in 30d

Description

Currently we hardcode the set of serializable gates in a global variable here. It will be useful to various teams to allow the user to set this serializer to correspond with custom backends.

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

Read tensorflow_quantum/core/serialize/serializer.py around the hardcoded serializable-gates variable at line 370. Define how users should provide a serializer for custom backends, then verify that custom gate serialization works without relying on the global gate set.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.