tensorflow / tensorflow/quantum

[Discussion] Gradient of state op

Open
#420 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

kind/feature-request status/needs-design
Dominant language
Python
Stars
2.2k
Forks
665
PR merge metrics
No merged PRs in 30d

Description

It was pointed out in #256 by @refraction-ray that once we had implemented the adjoint differentiation scheme, it might be possible for us to make our calculate_state op differentiable as well. Though initially we felt that giving people too many powerful tools outside of what is actually possible on a true QC was not the best idea, I feel like since we are catering towards more expert users adding this feature will be fine (since experts will know you can't differentiate through a whole state or calculate a whole state when running on a NiSQ chip).

@refraction-ray do you have any more inputs on implementation that you would like to share ?

@zaqqwerty and @jaeyoo how do you feel about allowing for state vectors to be differentiable ?

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

Review the calculate_state operation and the adjoint differentiation discussion in issue #256 first. A complete contribution would need an agreed scope for differentiating state vectors and tests demonstrating the intended behavior, but this issue does not identify files or acceptance criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
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.