Open Takishima opened 4 years ago
Totals | |
---|---|
Change from base Build 1660129124: | 0.0% |
Covered Lines: | 7561 |
Relevant Lines: | 7561 |
@Takishima, I know a long time has passed but is this still relevant? Are we still considering implementing QASM translation to ProjectQ?
I will work on fixing the CI (hopefully this coming weekend) and I will then try to fix this PR. Will ping @andreashehn for a review then,
OpenQASM support
This is a first attempt at implementing conversion to and from OpenQASM.
U2 and U3 gates
Introduced
U2
andU3
gates with identical definitions as theu2
andu3
gates in OpenQASM standard library.Conversion ProjectQ -> QASM
This does not require
qiskit
to be installed. All the ProjectQ gates are automatically converted into QASM code.For all gates that are not currently supported by QASM need to be decomposed before reaching the
OpenQASMBackend
.Also note that you may also use
OpenQASMBackend
as a regular compiler engine in order to generate QASM and use the simulator at the same time:Conversion QASM -> ProjectQ
At this point, this does require either
qiskit
orpyparsing
to be installed.Typical use case:
The implementation currently supports most features of OpenQASM 2.0 (and some OpenQASM 3.0 features, although support for that version is still experimental)
*support at time of writing.
Closes #345 and closes #380