Open keriksson-rosenqvist opened 3 months ago
Qiskit has no support for OpenPulse, and we currently have no plan to add support for it. You're welcome to write your own library (see https://github.com/openqasm/openpulse-python for a functional parser to an AST), but Pulse development in Qiskit itself is currently somewhat on hold.
Thank you for the information and link. I will see if that can be used to resolve my issue.
For reference this became an issue when the new version of Qiskit dropped the qasm -> AST feature set as we have previously been able to achieve the functionality by extending that parser. If there is another way to hook into the v.046 QasmParser in >= v1.0.0 I'd love to know.
The "QASM -> AST" thing was for OpenQASM 2, whereas OpenPulse is a calibration grammar for OpenQASM 3. The equivalent (and much easier) strategy for you is probably to use https://github.com/openqasm/openpulse-python like I linked above.
Environment
What is happening?
Attempting to
qasm3.loads(<qasm_string>)
when the sting includes openpulse segments fails with errors as below:How can we reproduce the issue?
What should happen?
There should be a way to load QASM 3 including the openpulse grammar. If not through
qasm3.loads
then with some other documented approach.Any suggestions?
No response