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

Add basic support for OpenQASM 3. #151

Merged
merged 1 commit into from
Sep 7, 2023
Merged

Commits on Sep 7, 2023

  1. Add basic support for OpenQASM 3.

    Addresses issue zxcalc#116:
    - accept OpenQASM 3 file header produced by qiskit
    - condition behaviour of `rz` based on version:
      - OpenQASM 2: same as `ZPhase` = `diag(1, exp(i*phi))` (unchanged)
      - OpenQASM 3: acts like `diag(exp(-i*phi/2), exp(i*phi/2))`
    - add `p` as an alias for `ZPhase` in OpenQASM 3
    - add `u1` as an alias for `ZPhase` in both versions
    dlyongemallo committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    6f9478d View commit details
    Browse the repository at this point in the history