![codecov](https://camo.githubusercontent.com/709079536c225a0925247679c5ae67a29f220ba1d36d703e12f363a7b40a998a/68747470733a2f2f636f6465636f762e696f2f67682f6974737562616b692f7161736d2f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d39344b4151544b394b54)
go install github.com/itsubaki/qasm@latest
$ cat testdata/bell.qasm
OPENQASM 3.0;
include "testdata/stdgates.qasm";
qubit[2] q;
reset q;
h q[0];
cx q[0], q[1];
$ qasm -f testdata/bell.qasm
[00][ 0]( 0.7071 0.0000i): 0.5000
[11][ 3]( 0.7071 0.0000i): 0.5000
$ qasm repl
>> OPENQASM 3.0;
>>
>> gate h q { U(pi/2.0, 0.0, pi) q; }
>> gate x q { U(pi, 0, pi) q; }
>> gate cx q, p { ctrl @ x q, p; }
>>
>> qubit[2] q;
[00][ 0]( 1.0000 0.0000i): 1.0000
>> h q[0];
[00][ 0]( 0.7071 0.0000i): 0.5000
[10][ 2]( 0.7071 0.0000i): 0.5000
>> cx q[0], q[1];
[00][ 0]( 0.7071 0.0000i): 0.5000
[11][ 3]( 0.7071 0.0000i): 0.5000
U
, X
, Y
, Z
, H
, S
, T
QFT
, IQFT
, CMODEXP2
print