Skip to content
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

Support for OpenQASM 3.0 constant values #31

Closed
burgholzer opened this issue Dec 16, 2021 · 0 comments · Fixed by #309
Closed

Support for OpenQASM 3.0 constant values #31

burgholzer opened this issue Dec 16, 2021 · 0 comments · Fixed by #309
Labels
Core Anything related to the Core library and IR enhancement New feature or request

Comments

@burgholzer
Copy link
Member

The new OpenQASM standard introduces many additional datatypes besides quantum and classical registers. This allows to describe classical components of quantum algorithms in a very intuitive way. As a first step, support for all kinds of new types should be added to the QFR library and, correspondingly, to the QuantumComputation class. For details on all the new typed provided by the standard, see https://qiskit.github.io/openqasm/language/classical.html.

It also introduces the concept of constant values that can be declared with the const modifier. These are essentially known at "compile-time" and can be used to describe mathematical expressions (similar to OpenQASM 2.0's parameter expressions).

The QuantumComputation class should be capable of managing constants and performing tasks such as constant propagation.

Depends on #30 for the availability of the new datatypes.

@burgholzer burgholzer added the enhancement New feature or request label Dec 16, 2021
@burgholzer burgholzer moved this from Todo to On Hold in OpenQASM 3.0 Support Dec 16, 2021
burgholzer pushed a commit that referenced this issue Jun 2, 2023
Bumps [extern/googletest](https://github.com/google/googletest) from `bb92160` to `6b74da4`.
- [Release notes](https://github.com/google/googletest/releases)
- [Commits](google/googletest@bb92160...6b74da4)

---
updated-dependencies:
- dependency-name: extern/googletest
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@burgholzer burgholzer added this to the OpenQASM 3.0 Support milestone Jun 15, 2023
@burgholzer burgholzer added this to MQT Core and MQT Jun 15, 2023
@burgholzer burgholzer added the Core Anything related to the Core library and IR label Jun 15, 2023
@burgholzer burgholzer moved this to Todo in MQT Jun 15, 2023
@burgholzer burgholzer moved this to Todo in MQT Core Jun 15, 2023
@burgholzer burgholzer linked a pull request Dec 11, 2023 that will close this issue
@github-project-automation github-project-automation bot moved this from Todo to Done in MQT Dec 13, 2023
@github-project-automation github-project-automation bot moved this from On Hold to Done in OpenQASM 3.0 Support Dec 13, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in MQT Core Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Anything related to the Core library and IR enhancement New feature or request
Projects
Archived in project
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant