You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Base Profile Spec specifies that the required_num_qubits and required_num_results attributes must be attached to the entry point function, and while pyqir uses those attribute names in some places (like for internal variable names), there are some important places (like the LLVM interface) where num_required_qubits and num_required_results are used instead.
To Reproduce
Steps to reproduce the behavior:
Modify qirlib/resources/tests/rt/initialize.ll to match the Base Profile specification by applying this patch:
Hi @bmhowe23 - I need to look at this. To my knowledge the base profile is only defined in qir-spec #25 PR which I just saw you had some comments on. Everything here is based on that PR trying to define the base profile.
Describe the bug
The Base Profile Spec specifies that the
required_num_qubits
andrequired_num_results
attributes must be attached to the entry point function, and while pyqir uses those attribute names in some places (like for internal variable names), there are some important places (like the LLVM interface) wherenum_required_qubits
andnum_required_results
are used instead.To Reproduce
Steps to reproduce the behavior:
qirlib/resources/tests/rt/initialize.ll
to match the Base Profile specification by applying this patch:build.ps1
test rt::tests::initialize ... FAILED
Expected behavior
The test should not fail when using spec-compliant attributes.
Screenshots
N/A
System information
Additional context
N/A
The text was updated successfully, but these errors were encountered: