package voqc

  1. Overview
  2. Docs

Module Voqc.QasmSource

Functions for reading and writing files in the OpenQASM file format.

Sourceval read_qasm : string -> Main.circ * int

Read an OpenQASM file and return a circuit along with the number of qubits it uses.

Sourceval write_qasm : Main.circ -> int -> string -> unit

Write a circuit to an OpenQASM file. The second argument is the number of qubits used in the circuit.

OCaml

Innovation. Community. Security.