Quantum Computing  
010000101110011010100111101101101110100110111111000010101000100110101001101110101101100010100111100000111111010010100001101000101011111111100010101100111111100000101011011110011010101101111111

Simulating Two Qubits - C Code
// CNOT, swap q[2] and q[3]
//
// Python: self.onezero, self.oneone = self.oneone, self.onezero
//
void CNOT( double complex q[4])
{
  double complex t = q[3];  q[3] = q[2];  q[2] = t;
}

// Z gate on first qubit
//
// Python: self.onezero *= -1;  self.oneone  *= -1
//
void Z( double complex q[4])
{
  q[2] = -q[2];  q[3] = -q[3];
}

Python Quantum Computing simulator, Juliana Pena, 2011.