Quantum Calculator with QISKit.
At this time, the program no longer works properly due to specification changes of QISkit.
There are plans to correspond current specification soon.
It is possible to add a natural number expressed by n Qubits. Since the result also needs to be represented by n Qubits, if it is more than n Qubits it will be Over Range (OR). The H button means that the Hadamard gate acts on the input gate, at that time the input gate simultaneously shows the state of (0, 1, 2, ... , 2^n-1), which enables quantum parallel computation.
python3 qc.py
In order to calculate on IBM Q quantum device, it is necessary to set API token. Please edit Qconfig.py.
Execution on the real device is possible by preparing Qconfig.py, but any operation using this program can not be guaranteed Please check it well before execution.
In order to add or subtract, this program requires 2*n+2 Qubits quantum circuit where n is number of input qubits. The quantum algorithm of this adder was prepared with reference to quantum ripple-carry adder from Cuccaro et al, quant-ph/0410184.
- 2018/03/03 v0.0.2 n Qubits + n Qubits = n Qubits addition and subtract support.
- 2017/01/28 v0.0.1 3 Qubits + 3 Qubits = 3 Qubits addition supports.
Hideto Manjo