// two-bit state and operations // #ifndef B2_H_ #define B2_H_ class B2 { private: int b1, b0; public: B2(); void print(const char msg[]) const; void X(); int M(); // NOT, measure - bit 1 void CX(); // controlled-NOT on bit 0 controlled by bit 1 }; #endif // B2_H_