This sheet provides a quick-reference for most common QCEngine commands.
The best way to become familiar with QCEngine commands is to try running the book
samples in this page.
If you find things missing or unclear, the authors would love to hear from you
at
octopus@qcengine.com.
"qc." Commands: Commands such as
qc.reset()
and
qc.cnot(t,c)
execute
using a quantum computation simulator. In most cases, they take a
target mask and a
condition mask,
to specify which qubits the instructions act on. Some commands also take a rotation angle.
Qubit Masks: Qubits are be specified using an integer, where each bit corresponds to one of the
qubits in the quantum computer.
(...this is under sonstruction)