// Wyczyść płótno
qc.reset(8);
var qx = qint.new(4, 'qx');
var qy = qint.new(4, 'qy');
qc.write(0);
qx.hadamard();
qy.hadamard();

// Odwróć, jeśli qx >= 8
qc.phase(180, qx.bits(0x8));

// 50% szarości w rogu
qx.cnot(qy, 0x1);
qc.cphase(180, qy.bits(0x8, qx.bits(0x8|0x1)));
qx.cnot(qy, 0x1);
