Professional Documents
Culture Documents
Docs Gate User Guide
Docs Gate User Guide
Docs Gate User Guide
1
User Documentation
Three-qubit operation is given by; single spaces in between the operations, and
no spaces before and after the string. If
1 0 0 0 0 0 0 0 there are errors while inputting the gates,
0 1 0 0 0 0 0 0 the user will be asked to put them cor-
0 0 1 0 0 0 0 0
rectly. While putting the qubit indices for
0 0 0 1 0 0 0 0
CCX = (4) two-qubit and three-qubit gates, users must
0 0 0 0 1 0 0 0
note that there should not be any repeat of
0 0 0 0 0 1 0 0
qubit indices, e.g., CX{0, 0} is not accept-
0 0 0 0 0 0 0 1 able.
0 0 0 0 0 0 1 0 • Then the user needs to enter the number of
shots, i.e., the number of times the quantum
3. How to apply the operations circuit will be measured. The minimum and
• For the operations having single qubit maximum range of shots are 1 and 8192 re-
index and no angle, {H, X, Y, Z}; e.g., spectively. The users are adviced to put the
H{i}, X{i}, Y {i}, Z{i}, where i is the in- maximum number of shots for lesser statis-
dex of qubit, and it can take values from tical error in the results.
0, 1, ..n − 1, while n being the number of • Then the users need to enter the qubits
qubits. where the measurement would be per-
• The operations having single qubit in- formed. It is to be noted that the qubit
dex and with angle, {RX, RY, RZ, P, U }; indices have to be lesser than the number
RX(θ){i}, RY (θ){i}, RZ(θ){i}, P (θ){i}, U (θ){i}, of qubits (n), and the length of the string
where θ can take values from +/− 0 to has to be lesser than n. Like the previous
999999, and i is the index of qubits. Any case, here also the user needs to put sin-
angle in radian needs to be converted, e.g., gle spaces in between the qubit indices, and
an angle of π can be converted to 3.141, there should not be any repeat of the qubit
and this value can be put in the angle indices. Some examples for a 3-qubit circuit
parameter. can be seen as;
• For two-qubit operations {CX, CU } with ◦ ‘0 1 2’
no angle, CX{i, j} and with angle, ◦ ‘0 1’
CU (θ, ϕ, λ, γ){i, j}, where θ, ϕ, λ, γ are the ◦ ‘1 2’
angles, and take the same range as given A string like ‘0 1 0’ or ‘0 1 2 3’ or ‘0 1 3’ is
above. Here, i, j are the qubit indices, not acceptable.
th
where i qubit is the control qubit and j th