entropicalabs / openqaoa

Multi-backend SDK for quantum optimisation
MIT License
116 stars 58 forks source link

Fixed pyqir imports and added provisional bitcode function #163

Closed yorgossot closed 1 year ago

yorgossot commented 1 year ago

Fixed pyqir imports and added provisional bitcode method

Checklist

Type of change

vishal-ph commented 1 year ago
  • Added commented-out methodconvert_to_bitcode with the exact same structure as convert_to_ir

    • Decided to comment it out until issue with IR results is resolved

The issue you mention is the one where the IR does not include the result recording functions, and we need to add them manually? Or is it something else?

yorgossot commented 1 year ago
  • Added commented-out methodconvert_to_bitcode with the exact same structure as convert_to_ir

    • Decided to comment it out until issue with IR results is resolved

The issue you mention is the one where the IR does not include the result recording functions, and we need to add them manually? Or is it something else?

Yes. Since we need to manually edit the IR, obtaining the bitcode directly from the "incomplete" IR is useless for now. Thus, I commented out the function for the bitcode.