Add State Preparation Algorithm to Cirq

Open
#7,774 2 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@ACE07-Sev is already working on this.

Since Nov 26, 2025.

Assessment

This issue has not been assessed yet.

Description

kind/feature-request priority/before-1.8 status/rfc-needed triage/accepted

Is your feature request related to a use case or problem? Please explain

To allow encoding of an arbitrary statevector into a circuit.

Describe the solution you would prefer

We can use either Isometry, Shende, or Mottonen's approach. Isometry is more optimal, but needs multiplexor gate to be implemented.

How urgent is this for you? Is it blocking important work?

P2

Provide additional information or context (e.g., screenshots)

This is different from #4048 and #4119 as those do not allow for extracting a simulatable circuit, i.e., cannot run cirq.final_state_vector() on such circuits.

Dominant language
Python
Stars
5.1k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
48

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 quantumlib/Cirq

All issues in quantumlib/Cirq

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.