Recently we had quantum computer programming workshop for kids in Tokyo Institute of Technology. These kids solved difficult problems faster than adults. We found that adults need easier lecture and textbook to understand Quantum Computer rather than kids.

In Japan we are doing basic mathematics training everyday using simple text with a lot of basic calculation. We made a basic training textbook for quantum computer.

Rules

The basic rule is very simple. When we use existing computer, the computer calculating 0 and 1 as a basic logical circuit. Now we add + and -, and thinking 4 conditions like 0/1/+/-.

By this simple rule, we can change 0 and 1 using X gate.

Changing + and – using Z gate.

H gate has specific function to change 0 to + and 1 to -(minus).

Let’s try some basic quiz using this rules.

Problems

Let’s fill the blanks. The data always start with 0.

① 0 => □ => 1 What is the gate?

② 0 => X => 1 => H => □ What is the final condition?

③ 0 => □ => + What is the gate?

④ 0 => X => 1 => H => – => □ => + What is the gate?

⑤ 0 => X => H => Z => H => X => □ What is the final condition?

Answer

①X gate ②- ③H gate ④Z gate ⑤1

Discussion

Isn’t is easy to understand the basic rules of quantum computer? Let’s try next step using Y-axis and observation for semi-professional skill for quantum programming.