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 mx operation in openqasm #2487

Closed

Conversation

sacpis
Copy link
Collaborator

@sacpis sacpis commented Dec 23, 2024

Fixes #2457

root@206a3d35e543:/workspaces/cuda-quantum# python3 docs/sphinx/examples/python/test.py 
// Code generated by NVIDIA's nvq++ compiler
OPENQASM 2.0;

include "qelib1.inc";

qreg var0[2];
h var0[0];
cx var0[0], var0[1];
creg var3[1];
h var0;
measure var0 -> var3[0];

Tests result

100% tests passed, 0 tests failed out of 810

Label Time Summary:
gpu_required    = 243.72 sec*proc (381 tests)

Total Test time (real) = 1000.05 sec

* Formatting

Signed-off-by: Sachin Pisal <[email protected]>
github-actions bot pushed a commit that referenced this pull request Dec 24, 2024
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

@sacpis sacpis marked this pull request as ready for review December 24, 2024 01:00
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions bot pushed a commit that referenced this pull request Dec 31, 2024
Copy link
Collaborator

@schweitzpgi schweitzpgi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should just use the MxToMz and MyToMz rewrite patterns for this one, rather than special case it in the QASM printer.

github-actions bot pushed a commit that referenced this pull request Jan 6, 2025
Copy link

github-actions bot commented Jan 6, 2025

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

@sacpis sacpis closed this Jan 7, 2025
github-actions bot pushed a commit that referenced this pull request Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mx operation unsupported in OpenQASM conversion
2 participants