In the proposed work, the problem of compressing binary messages in one cycle is solved. A method for solving it in relation to Bernoulli sources of information is proposed, using tabular logic, according to which the original message is converted by the decoder of the compression system into a pre-recorded number in one of its memory cells together with a number representing the number of units in the original message. Restoration of compressed information also occurs according to tabular logic, in which the number of the compressed message excites the original message recorded in the corresponding memory cell, and it is transmitted to the system output. A significant advantage of the proposed method, in addition to speed, is that the compression effect approaches the entropy of the original messages and makes it possible to build quantum processors both on ordinary elements and on elements that use quantum effects.