QuTech-Delft / libqasm

libQASM: Library to parse cQASM files
https://arxiv.org/abs/1805.09607
Other
15 stars 16 forks source link

Fix deserialization of CBOR strings #232

Open rturrado opened 5 days ago

rturrado commented 5 days ago

CBOR strings are Python bytes objects, and they are currently incorrectly deserialized. A bytes object 'id' such as b'qubit' is deserialized via str(id) to a string "b'qubit'". The correct way of doing this deserialzation woudl be via a decodingstr(id, 'utf-8')to a string"qubit"`.