Loading examples/qcor_demos/pirq_workshop/demo1_compile_target_execution/README.md +6 −0 Original line number Diff line number Diff line Loading @@ -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 examples/qcor_demos/pirq_workshop/demo1_compile_target_execution/ghz.cpp +7 −0 Original line number Diff line number Diff line Loading @@ -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]); Loading examples/qcor_demos/pirq_workshop/demo4_hpc_integration/README.md +18 −1 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 examples/qcor_demos/pirq_workshop/demo4_hpc_integration/tnqvm.ini 0 → 100644 +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 Loading
examples/qcor_demos/pirq_workshop/demo1_compile_target_execution/README.md +6 −0 Original line number Diff line number Diff line Loading @@ -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
examples/qcor_demos/pirq_workshop/demo1_compile_target_execution/ghz.cpp +7 −0 Original line number Diff line number Diff line Loading @@ -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]); Loading
examples/qcor_demos/pirq_workshop/demo4_hpc_integration/README.md +18 −1 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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
examples/qcor_demos/pirq_workshop/demo4_hpc_integration/tnqvm.ini 0 → 100644 +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