Arbitrary Input State Capabilities

Open
#210 7 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

Research direction

The issue does not name files, tests, or entry points. Start by reviewing existing TFQ interfaces for input states, then determine whether arbitrary state vectors and density matrices are supported; done requires a decided interface for specifying both forms or a documented conclusion that the request is out of scope.

Written by the indexing model from the issue text.

Description

kind/feature-request

Are there functionalities in TFQ that allow one to specify an arbitrary input state in the 2^N Hilbert space? I understand that one could in principle make a circuit to prepare such a state, but in the case where, for example, the input state comes from solving the ground state of a many-body Hamiltonian, this might be very expensive to do, and it would be useful to be able to have an interface directly specifying this as a state vector/density matrix.

Dominant language
Python
Stars
2.2k
Forks
674
Avg merge
1d 14h
Merged PRs (30d)
5

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 tensorflow/quantum

All issues in tensorflow/quantum

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.