microsoft / microsoft/qdk

Allow non-quantum parameters when generating a circuit for an operation

Open
#2,070 0 comments 0 reactions 0 assignees View on GitHub
circuits enhancement low-priority
Dominant language
Rust
Stars
1k
Forks
212
Avg merge
3d 8h
Merged PRs (30d)
65

Description

Consider the following operation:
![Image](https://github.com/user-attachments/assets/4cc8f759-1263-446c-95df-b101ba4193d1)
Circuit can be drawn for it with some random value for theta. But if I pass theta into this operation, a circuit cannot be drawn.
![Image](https://github.com/user-attachments/assets/b0d44c0c-b89a-400d-bdfe-25af6d6e7a78)
It would be nice to draw a circuit with 'theta' shown in place of the numerical value.

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named in the report. Locate the circuit-generation path for operations and trace how non-quantum parameters such as `theta` are handled. Done means the circuit can be drawn with `theta` shown symbolically instead of requiring a numeric value.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.