Commit 861a0172 authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Work on PIRQ demos



Signed-off-by: default avatarThien Nguyen <nguyentm@ornl.gov>
parent 4f008457
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -24,3 +24,9 @@

- Python binding: equivalent kernel expressed in Python (qjit)

- IonQ: Create `.ionq_config` with 

```
key: XXXX
url: url:https://api.ionq.co/v0.1
```
 No newline at end of file
+7 −0
Original line number Diff line number Diff line
@@ -7,6 +7,13 @@
/// IBMQ Backend (pulse mode)
/// QCOR lowers gates --> pulses
/// $qcor -qpu ibm:ibmq_montreal[mode:pulse] ghz.cpp 

/// IonQ 
/// Simulator:
/// qcor -qpu ionq ghz.cpp
/// QPU (11 qubits)
/// qcor -qpu ionq:qpu ghz.cpp

__qpu__ void ghz(qreg q) {
  H(q[0]);

+18 −1
Original line number Diff line number Diff line
@@ -14,7 +14,12 @@

- Init file: configuring TNQVM (amplitude calculation mode). QCOR stack on Summit. Execution with MPI (showing GPU flops after calculation)

- Submit a job to QLM via a simple `-qpu` switch.
- Submit a job to QLM via a simple `-qpu` switch. Make sure `.qlm_config` is valid.
```
pip3 install qlmaas

qcor -qpu atos-qlm[sim-type:MPS] file.cpp
```


## Summit Build Instructions
@@ -49,3 +54,15 @@ qcor -c file_name.cpp
```
g++ -rdynamic -Wl,-rpath,/ccs/home/nguyent/.xacc/lib:/ccs/home/nguyent/.xacc/lib:/autofs/nccs-svm1_home1/nguyent/.llvm/lib:/ccs/home/nguyent/.xacc/clang-plugins -L /ccs/home/nguyent/.xacc/lib -lqcor -lqrt -lqcor-hybrid -lqcor-quasimo -lqcor-jit -L /ccs/home/nguyent/.xacc/lib -lxacc -lCppMicroServices -lxacc-quantum-gate -lxacc-pauli -lxacc-fermion -lpthread -lqir-qrt file_name.o
```

### ExaTN Build

```
CC=gcc CXX=g++ FC=gfortran cmake .. -DCMAKE_BUILD_TYPE=Debug -DEXATN_BUILD_TESTS=TRUE -DBLAS_LIB=OPENBLAS -DBLAS_PATH=/autofs/nccs-svm1_sw/summit/.swci/1-compute/opt/spack/20180914/linux-rhel7-ppc64le/gcc-10.2.0/openblas-0.3.9-jzzdcglqreyi3t22emvurkxhrpkj4bhl/lib -DCMAKE_INSTALL_PREFIX=~/.exatn
```

### TNQVM Build

```
cmake .. -DXACC_DIR=~/.xacc -DEXATN_DIR=~/.exatn -DCMAKE_BUILD_TYPE=Debug 
```
 No newline at end of file
+3 −0
Original line number Diff line number Diff line
tnqvm-visitor=exatn:float
exatn-buffer-size-gb=32
bitstring=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
 No newline at end of file