abstract—we present a basic high-level structures
used for developing quantum programming languages.
the presented structures are commonly used in many
existing quantum programming languages and we use
quantum pseudo-code based on qcl quantum programming language to describe them.
we also present the implementation of introduced
structures in gnu octave language for scientific computing. procedures used in the implementation are available
as a package quantum-octave, providing a library of
functions, which facilitates the simulation of quantum
computing. this package allows also to incorporate highlevel programming concepts into the simulation in gnu
octave and matlab. as such it connects features unique
for high-level quantum programming languages, with the
full palette of efficient computational routines commonly
available in modern scientific computing systems.
to present the major features of the described package
we provide the implementation of selected quantum
algorithms. we also show how quantum errors can be
taken into account during the simulation of quantum
algorithms using quantum-octave package. this is
possible thanks to the ability to operate on density
matrices.
index terms—quantum information, quantum programming, models of quantum computation