-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: Abstract WORDSIZE to specify maxwidth on qasm conversion #204
fix: Abstract WORDSIZE to specify maxwidth on qasm conversion #204
Conversation
@@ -31,7 +31,7 @@ dependencies = [ | |||
|
|||
[project.optional-dependencies] | |||
docs = ["sphinx", "pydata_sphinx_theme"] | |||
phirc = ["projectq", "quantum-pecos>=0.5.0.dev10"] | |||
phirc = ["projectq", "quantum-pecos>=0.6.0.dev2"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
64-bit support added in https://github.com/PECOS-packages/PECOS/releases/tag/v0.6.0.dev2
@@ -544,7 +556,7 @@ def get_decls(qbits: set["Qubit"], cbits: set[tkBit]) -> list[dict[str, str | in | |||
decls += [ | |||
{ | |||
"data": "cvar_define", | |||
"data_type": "u32", | |||
"data_type": f"i{WORDSIZE}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing to i64 as the default as per the spec. Tested with previous version of pytket to check that i32 works as well.
Description
Makes pytket-phir compatible with pytket version 1.30.0 while maintaining backward compatibility.
Fixes: #203
Type of change
Checklist