If one wants an invertible encoding, nohow
A pair of independently chosen arbitrary 3-bit numbers is total states which is strictly greater than states, so any method you use to turn those two into one 4-bit number, would be not invertible. arseniiv (talk) 18:26, 13 June 2020 (UTC)