代码拉取完成,页面将自动刷新
同步操作将从 arclightquantum/isq 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
all: frontend mlir isqc simulator isq-simulator.bc
.PHONY: check-env frontend mlir isqc simulator isq-simulator.bc all lock develop run clean upload
check-env:
ifndef ISQ_ROOT
$(error ISQ_ROOT is undefined)
endif
$(info $(shell mkdir -p $(ISQ_ROOT)/bin))
frontend: check-env
cd frontend && make all
cd ${ISQ_ROOT}/bin && \
rm -f isqc1 && \
ln -s ../frontend/dist/build/isqc1/isqc1 isqc1
mlir: check-env
cd mlir && mkdir -p build && cd build && cmake ../ -GNinja && ninja
cd ${ISQ_ROOT}/bin && \
rm -f isq-opt && \
ln -s ../mlir/build/tools/isq-opt isq-opt
isqc: check-env
cd isqc && cargo build;
cd ${ISQ_ROOT}/bin && \
rm -f isqc && \
ln -s ../isqc/target/debug/isqc isqc
simulator: check-env
cd simulator && cargo build
cd ${ISQ_ROOT}/bin && \
rm -f simulator && \
ln -s ../simulator/target/debug/simulator simulator
isq-simulator.bc: check-env
mkdir -p ${ISQ_ROOT}/share/isq-simulator;
linker=`which llvm-link` && if [ $$linker == "" ]; then linker=$(ISQ_ROOT)/bin/llvm-link; fi \
&& cd simulator && eval $$linker src/facades/qir/shim/qir_builtin/shim.ll src/facades/qir/shim/qsharp_core/shim.ll \
src/facades/qir/shim/qsharp_foundation/shim.ll src/facades/qir/shim/isq/shim.ll -o ${ISQ_ROOT}/share/isq-simulator/isq-simulator.bc
upload:
nix flake archive --json \
| jq -r '.path,(.inputs|to_entries[].value.path)' \
| cachix push arclight-quantum
nix build --json \
| jq -r '.[].outputs | to_entries[].value' \
| cachix push arclight-quantum
clean: check-env
rm .build -r
mkdir -p .build
develop:
@exec nix develop
lock:
cd vendor && nix flake lock --update-input isqc-base
cd simulator && nix flake lock --update-input isqc-base --update-input vendor --update-input vendor
cd isqc && nix flake lock --update-input isqc-base
cd mlir && nix flake lock --update-input isqc-base --update-input vendor
cd frontend && nix flake lock --update-input isqc-base
cd docs && nix flake lock --update-input isqc-base
nix flake lock --update-input isqc-base --update-input vendor --update-input isqc1 --update-input isq-opt --update-input isqc-driver --update-input isq-simulator --update-input isqc-docs
bin:
mkdir -p bin
cd bin && ln -s ../frontend/dist/build/isqc1/isqc1 ./isqc1
cd bin && ln -s ../mlir/build/tools/isq-opt ./isq-opt
cd bin && ln -s ../mlir/build/tools/isq-example ./isq-example
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。