qir-alliance / pyqir

PyQIR is a set of APIs for generating, parsing, and evaluating Quantum Intermediate Representation (QIR).
https://qir-alliance.github.io/pyqir
MIT License
57 stars 24 forks source link

Support for parsing global byte array constants #120

Closed swernli closed 2 years ago

swernli commented 2 years ago

This change adds support to the pyqir-parser for parsing global byte array constants and getting their defined value from the module. This is useful when dealing global static strings, and the added test demonstrates how to interpret the Python bytes as a string.