So far, the world of quantum-gated computing has been exploited, aimed at the limited applications based upon the Deutsch algorithm in 1985 and a few algorithms after his. However, the most important is to manage quantum-gated computers like we have designed and operated electronic computers. Fortunately, some theoretically novel challenge has been shown by the authors here. It happens that this challenge is too theoretical to be understood, but is very much needed in storing logical functions in a boolean algebra for the purpose of constructing hardware of quantum-gated computers and designing the programs. With storing data, the memory function is the basis of constructing quantum-gated computers. Toward practically simple construction of the quantum-gated computer, an example of simple memory, called registers, whose physical access is much easier is shown using the Bernstein-Vazirani algorithm.