3 releases (breaking)
0.3.0 | Nov 12, 2020 |
---|---|
0.2.0 | Jan 29, 2020 |
0.1.0 | Jan 20, 2020 |
#4 in #open-qasm
24KB
463 lines
dqcsim-openqasm
An OpenQASM 2.0 frontend plugin for DQCsim.
Usage
Requirements
Install
cargo install dqcsim-openqasm
Update/Re-install
cargo install --force dqcsim-openqasm
Uninstall
cargo uninstall dqcsim-openqasm
Run
This plugin enables running .qasm
files directly e.g.
dqcsim test.qasm null
Notes
- 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.
Dependencies
~16–28MB
~457K SLoC