An OpenQASM 2.0 frontend plugin for DQCsim.
cargo install dqcsim-openqasm
cargo install --force dqcsim-openqasm
cargo uninstall dqcsim-openqasm
This plugin enables running .qasm
files directly e.g.
dqcsim test.qasm null
- Include statements are resolved relative to the current working directory and there are no automatic includes or additional gate definitions.
.qasm
files including other files e.g.include "qelib1.inc";
have to provide these files. barrier
instructions are skipped by default. To enable passingbarrier
instructions in the gatestream set theDQCSIM_OPENQASM_BARRIER
environment variable. Thebarrier
instruction is encoded as a custom gate namedopenqasm.barrier
with the target qubits set accordingly.