#include <qgtypes.h>
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 &) |
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.