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

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.

Methods:

  • test
    test( self, theProgram, testCases, t, qb, finalQB )

    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.