qgame::TestCase Struct Reference
[Top Level Interfaces]

A test case. More...

#include <qgtypes.h>

List of all members.

Public Member Functions

 TestCase (const std::string &tt, int res)
 Construct test case.

 TestCase (const std::string &casestr)
 Construct from a param string: <oraclett>-<res>, e.g.


Public Attributes

std::string oracleTT
 Right-hand side of oracle truth table.

int desiredRes
 Desired result of final measurement.


Detailed Description

A test case.

This struct describes a single test case, consisting of (the right side of) an oracle truth table and the desired result one wants to measure through the final measurement qubits after running the program. The oracle truth table is given as a string of 0 and 1, defining the output the oracle should produce for each input (sorted in increasing, binary order).

Definition at line 162 of file qgtypes.h.


Constructor & Destructor Documentation

TestCase::TestCase const std::string &  casestr  ) 
 

Construct from a param string: <oraclett>-<res>, e.g.

0100-1. desiredRes will be -1 if the string was invalid.

Definition at line 264 of file qgtypes.cpp.

References desiredRes, and oracleTT.


The documentation for this struct was generated from the following files:
Generated on Sat Apr 3 18:42:39 2004 for QGame++ by doxygen 1.3.5