Loading mlir/parsers/qasm3/examples/adder.qasm +19 −0 Original line number Diff line number Diff line Loading @@ -3,8 +3,27 @@ * Cuccaro et al, quant-ph/0410184 */ // Summit compile: // Summit set-up: // module load cmake/3.20.2 python/3.8.10 gcc/9.3.0 cuda/11.4.0 // Interactive node request: // bsub -Is -W 1:00 -nnodes 1 -P PHYXXX $SHELL // Note: Summit can be **fully-booked** (running leadership-type jobs) hence the above // request can be pending in a long time. // Using DM-Sim: // qcor -linker g++ -qrt nisq adder.qasm -shots 1024 -qpu dm-sim[gpus:4] // Note: on a login node,GPU-GPU comm is disabled, hence can only run with 1 GPU. // Utils: // See number of GPU's: nvidia-smi --query-gpu=name --format=csv,noheader | wc -l // XACC/LLVM-CSP/QCOR compile: // LLVM-CSP // cmake ../llvm -DCMAKE_INSTALL_PREFIX=~/.llvm -DCMAKE_C_COMPILER=/sw/summit/gcc/9.3.0-2/bin/gcc -DCMAKE_CXX_COMPILER=/sw/summit/gcc/9.3.0-2/bin/g++ -DLLVM_ENABLE_PROJECTS="clang;mlir" -DBUILD_SHARED_LIBS=TRUE // QCOR: (must add paths to the specific gcc module paths) // cmake .. -DXACC_DIR=~/.xacc -DLLVM_ROOT=~/.llvm -DMLIR_DIR=~/.llvm/lib/cmake/mlir -DQCOR_BUILD_TESTS=TRUE -DCMAKE_BUILD_TYPE=Debug -DQCOR_EXTRA_HEADERS="/sw/summit/gcc/9.3.0-2/include/c++/9.3.0/powerpc64le-unknown-linux-gnu/;/sw/summit/gcc/9.3.0-2/include/c++/9.3.0/" // export PATH=~/.xacc/bin:$PATH OPENQASM 3; Loading Loading
mlir/parsers/qasm3/examples/adder.qasm +19 −0 Original line number Diff line number Diff line Loading @@ -3,8 +3,27 @@ * Cuccaro et al, quant-ph/0410184 */ // Summit compile: // Summit set-up: // module load cmake/3.20.2 python/3.8.10 gcc/9.3.0 cuda/11.4.0 // Interactive node request: // bsub -Is -W 1:00 -nnodes 1 -P PHYXXX $SHELL // Note: Summit can be **fully-booked** (running leadership-type jobs) hence the above // request can be pending in a long time. // Using DM-Sim: // qcor -linker g++ -qrt nisq adder.qasm -shots 1024 -qpu dm-sim[gpus:4] // Note: on a login node,GPU-GPU comm is disabled, hence can only run with 1 GPU. // Utils: // See number of GPU's: nvidia-smi --query-gpu=name --format=csv,noheader | wc -l // XACC/LLVM-CSP/QCOR compile: // LLVM-CSP // cmake ../llvm -DCMAKE_INSTALL_PREFIX=~/.llvm -DCMAKE_C_COMPILER=/sw/summit/gcc/9.3.0-2/bin/gcc -DCMAKE_CXX_COMPILER=/sw/summit/gcc/9.3.0-2/bin/g++ -DLLVM_ENABLE_PROJECTS="clang;mlir" -DBUILD_SHARED_LIBS=TRUE // QCOR: (must add paths to the specific gcc module paths) // cmake .. -DXACC_DIR=~/.xacc -DLLVM_ROOT=~/.llvm -DMLIR_DIR=~/.llvm/lib/cmake/mlir -DQCOR_BUILD_TESTS=TRUE -DCMAKE_BUILD_TYPE=Debug -DQCOR_EXTRA_HEADERS="/sw/summit/gcc/9.3.0-2/include/c++/9.3.0/powerpc64le-unknown-linux-gnu/;/sw/summit/gcc/9.3.0-2/include/c++/9.3.0/" // export PATH=~/.xacc/bin:$PATH OPENQASM 3; Loading