These pages are auto-generated from self-documenting comments embedded in class files.
For more information on breve and steve, refer to the breve homepage.

## Object : QSystem

This class is included as part of the file QGAME.tz.
To use this class in a simulation, include the line "@use QGAME."

### Class description:

> The main interface to the qgame++ Quantum Gate And Measurement Emulator, a quantum computing simulator.

> Note: the QGAME library is not built-in to the standard breve distribution. Use of this class may require compiling breve from the source code with support for QGAME.

### Class methods:

> - test

`test program theProgram (object) cases testCases (list) threshold t (double) qubits qb (int) measurement-qubits finalQB (list)`

> Runs a series of test cases using qb qubits, specified by testCases, on theProgram with qb qubits and a threshold of t.

> This call returns a list of 5 items, which are to be interpreted as:

> - Number of misses
> - Maximum error
> - Average error
> - Maximum number of oracle calls
> - Average number of oracle calls

>   If an error occurs during the execution of the program, all of the elements of the returned list are set to -1.

Documentation created Fri Aug 8 15:16:49 2008