goodchemistryco / Tangelo

A python package for exploring end-to-end chemistry workflows on quantum computers and simulators.
https://goodchemistryco.github.io/Tangelo/
Other
99 stars 27 forks source link

Better OpenQASM circuit conversion #233

Open alexfleury-sb opened 1 year ago

alexfleury-sb commented 1 year ago

Issue: Feature Request

What problem does this feature request help you overcome? Please describe. Our current implementation to get circuits from the qasm format only supported a subset of OpenQASM, and was written early 2020.

Describe the solution you'd like Implement this using the reverse qiskit translation combined with https://qiskit.org/documentation/stubs/qiskit.circuit.QuantumCircuit.from_qasm_str.html#qiskit.circuit.QuantumCircuit.from_qasm_str ?

The file is located here https://github.com/goodchemistryco/Tangelo/blob/develop/tangelo/linq/translator/translate_openqasm.py.

ValentinS4t1qbit commented 1 year ago

Note: some tests rely on reading pre-generated QASM files. There is a chance that these files may be updated, unless they were not written in a particular format and were not restricted to any particular subset of QASM.