Open BrunoLiegiBastonLiegi opened 8 months ago
Maybe looking at https://github.com/amazon-braket might help. They use openqasm3
, too.
Was surprised to discover AWS Braket is on v3 already and extended OpenQASM using pragmas to allow e.g. adjoint differentation or noise modelling ... compiling on the fly and even allowing verbatim compilation. Considering emulation/simulation, Amazon's set of simulators is quite large, too. However, I haven't played with them, yet.
The newly introduced
openqasm3
parser added support for QASM 3.0 but it's way slower thanopenqasm
(the older version of the parser supporting QASM 2.0). For a 1000 qubits random Clifford circuit:openqasm3
: ~160 sopenqasm
: ~ 2 sThe
qibo.models._openqasm.QASMParser
was implemented withopenqasm3
as reference, but it might actually be extended to give the possibility of parsing QASM 2.0 code usingopenqasm
. Even though I am not sure how much overlapping exists between the objects generated byopenqasm
andopenqasm3
...