In the classical realm, if you transmit the single bit, you can encode exactly two values: zero or one.
In the quantum realm, you can transmit the single qubit, but encode two bits, i.e. four values. To do this you can use quantum entanglement: you share an EPR pair between participants before the transmission and consume it during the transmission.
Generate an EPR pair: the state \(\frac{1}{\sqrt{2}} \big( |00\rangle + |11\rangle \big)\).
Alice and Bob each received their part of the EPR pair, i.e. the state \(\frac{1}{\sqrt{2}} \big( |00\rangle + |11\rangle \big)\). Alice wants to encode two bits using her component. She applies some operations (that depend on her bits) to her qubit. Implement this transformation.
Your variant:
You can apply operations only to the first qubit!
After encoding, Alice sends her qubit to Bob. Now Bob has to recover Alice's bits.
You don't know exactly, which state is yours, but after applying the operations you should get the results shown above.