You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As example, we can send to interpreter this command:
H 0
CNOT 0 1
MEASURE 0 1
this algorithm of Bell state.
So we should this commands load to some runtime, and apply this commands on register.
First apply Hadamard gate on 0 register,
Second apply C-NOT gate on 0 -> 1,
And the last to measure state of qubits.
After this we should have 0,0 or 1, 1 values for qubits.
Need create AST for Intermediate Representation (IR) and create a parser and a lexer for the each of implementations QASM, which will be parse source code in IR and execute on simulator or real QPU.
Exist several specification of Quantum Assembly Languages, as example:
https://github.com/Qiskit/openqasm
https://github.com/rigetti/quil
https://arxiv.org/pdf/1805.09607.pdf
so, need create an intermediate representation of quantum language, which will loading from human-redable format to binary data and simulation or execute on real QPU.
The text was updated successfully, but these errors were encountered: