dqcsim-openqasm

Crates.iodqcsim-openqasm
lib.rsdqcsim-openqasm
version0.3.0
sourcesrc
created_at2020-01-20 13:37:59.951445
updated_at2020-11-12 07:24:53.387912
descriptionAn OpenQASM 2.0 frontend plugin for DQCsim
homepage
repositoryhttps://github.com/mbrobbel/dqcsim-openqasm
max_upload_size
id200449
size62,097
Matthijs Brobbel (mbrobbel)

documentation

README

dqcsim-openqasm

Crates.io

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 passing barrier instructions in the gatestream set the DQCSIM_OPENQASM_BARRIER environment variable. The barrier instruction is encoded as a custom gate named openqasm.barrier with the target qubits set accordingly.
Commit count: 27

cargo fmt