qgame::QubitList Class Reference
[Basic Types]

A list of qubits. More...

#include <qgtypes.h>

List of all members.

Public Member Functions

unsigned int size () const
 Get the size of the list (number of stored qubits).

void append (int qbnum)
 Add one qubit to the list, LSB comes first.

int operator[] (const unsigned int) const throw (Error)
 Get indexed list entry - this is read-only.


Friends

std::ostream & operator<< (std::ostream &, const QubitList &)


Detailed Description

A list of qubits.

This is used to store a list of qubits one wants to manipulate or otherwise access, as a vector of integers. For example, if you want to apply an operator to qubits 3 and 0, first create a QubitList object, add 3 and 0, and then provide the list to the operator function. The least significant (rightmost) qubit must be added first.

Definition at line 75 of file qgtypes.h.


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