-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Quantum Resource Estimation] Add support for executing Q# files/projects #1923
Comments
If I understand correctly, you are looking for an easy way to compile Q# files from Rust, correct? We do have ways to accomplish this from Python/Jupyter, specifically either the Does that match your question, or have I misunderstood the desired functionality? |
Thanks @swernli for the explanation. I didn't look thoroughly into the Rust example added. Based on the above explanation and quick glance over the sample and the abstract of the research paper, it seems to me that one should use rust resource estimator for :
Is my understanding correct? This time I am curious to know how does one decide between using Python+Q# or Rust based estimator. |
@msoeken should chime in here, but essentially there are two main resource estimation scenarios that we document and recommend right now:
Only these two are described in our documentation for now. The newer configurability that @msoeken is working on at the Rust layer is for folks who want to customize deeper elements of how the RE infrastructure calculates its estimates, including changing from PSSPC to other layout strategies. For now, that is only documented in the readme files and code comments within the repo and is targeted at advanced users who aren't afraid to dive into writing Rust code to access these newer, more detailed configuration features. To give scenario 1 a try yourself to see how easy it is to get started, you can navigate to the VS Code Playground, open the "Shor (Resource Estimation).qs" file, and either use the command palette entry "Q#: Calculate Resource Estimates" or the handy "Estimate" code lens: You can read more about this in the docs at Different ways to run the Resource Estimator |
Is your feature request related to a problem? Please describe.
It would be nice for the resource estimator tool to be able to support resource estimation for code in Q# file/Q# projects. I would like to know the opinion of QDK folks. @msoeken @tcNickolas @swernli @billti thoughts? If majority of people think that its not very useful, I am happy to close this issue :-)
Describe the solution you'd like
An abstract layer in the resource estimator tool provided by Q#. See #1915 (comment) for more details.
Describe alternatives you've considered
Write the code to compile the Q# code when the need arises. I feel that might be an extra burden for users who might not be familiar with interpreter and Package store API in Q# compiler.
Additional context
In #1915, Mathias introduced a sample detailing how to do that. I appreciate the sample detailing ability to do resource estimation from Q# file. Given that interpreter and Package store objects might be unfamiliar to many users, I think it might be helpful to provide a more abstract layer in the resource estimator tool provided by Q#. See #1915 (comment) for more details.
The text was updated successfully, but these errors were encountered: