quantumlib / Stim

A fast stabilizer circuit library.
Apache License 2.0
318 stars 93 forks source link

Circuit From QASM method? #686

Closed BrunoLiegiBastonLiegi closed 7 months ago

BrunoLiegiBastonLiegi commented 7 months ago

I was wondering if there was a method to load a circuit from an openqasm string. I noticed that there's a Circuit.from_file() method, but looking at the supported format it didn' t look exactly qasm (but I might be wrong I don't really have that much experience with qasm) or is it?.

Strilanc commented 7 months ago

No, there is no such method. There is a method to produce qasm but nothing to parse it. It'd probably take a person-month of work to properly add something like that, given how complicated qasm is. So it's also not a priority to add a method like that, unfortunately.