ExampleInstance
qisxml.org
1.0
ExampleGateLibrary
qisxml.org
1.0
C-NOT
Controlled-NOT
C-NOT
C-T
Controlled π/8
e^{i %PI/4 }
e^(i π/4)
C-S
Controlled Phase
C-Z
Controlled-Z
DEUTSCH
Deutsch Gate
The Deutsch gate is a quantum gate, which is based on the idea of a Toffoli gate. It is a 3 input gate where the two top inputs control the action of the bottom line. But this time the action is not a toggle. Instead it is a spin rotation by angle θ about the x axis. See also http://beige.ucs.indiana.edu/M743/node95.html.
theta
cos(θ)
i sin(θ)
i sin(θ)
cos(θ)
FREDKIN
Fredkin
Controlled Swap
The basic Fredkin gate is a controlled swap gate that maps three inputs (C, I1, I2) onto three outputs (C, O1, O2).
The C input is mapped directly to the C output.
If C=0, no swap is performed; I1 maps to O1, and I2 maps to O2.
Otherwise, the two outputs are swapped so that I1 maps to O2, and I2 maps to O1.
H
Hadamard
1/sqrt(2)
1/sqrt(2)
I
Identity
X
Pauli-X
NOT
SQRT-NOT
Square Root of Not
1/sqrt(2)
1/sqrt(2)
Y
Pauli-Y
Z
Pauli-Z
S
Phase
SHIFT
Phase Shift
θ
e^(2πiθ)
SWAP
Swap
TOFFOLI
Toffoli
controlled-controlled-not
The Toffoli gate is a reversible gate that takes three bits as input. The first two are control bits and are left unchanged by the gate. The third bit is flipped if both control bits are equal to 1. It is also known as the “controlled-controlled-not” gate
T
π/8
e^{i %PI/4 }
e^(i π/4)
ExampleCircuitLibrary
qisxml.org
1.0
qft3
3-qubit QFT
A three qubit quantum Fourier transform
H
C-S
C-T
H
C-S
H
SWAP
three_qb_phase_flip
3-qubit phase flip code
C-NOT
C-NOT
H
H
H
nine_qbit_shor
9-qubit Shor qubit code
Encoding circuit for the Shor nine qubit code.
C-NOT
C-NOT
H
H
H
C-NOT
C-NOT
C-NOT
C-NOT
C-NOT
C-NOT
adder2
pascal.heus.name
1.0
A simple example is a 2-bit wide adder.
It uses six qubits: inp0, inp1, sum0, sum1, anc0, and carryOut.
The input is inp0/1 and sum0/1. The output is sum0, sum1, and carryOut.
The least significant bits are at the top.
(source: http://hissa.nist.gov/~black/Quantum/genadder.html)
TOFFOLI
C-NOT
TOFFOLI
C-NOT
TOFFOLI
C-NOT
TOFFOLI
C-NOT
adder5
pascal.heus.name
1.0
A 5-bit wide adder based on http://hissa.nist.gov/~black/Quantum/genadder.html
InputA0
InputB0
Ancillary0
InputA1
InputB1
Ancillary1
InputA2
InputB2
Ancillary2
InputA3
InputB3
Ancillary3
InputA4
InputB4
Ancillary4
Sum0
Sum1
Sum2
Sum3
Sum4
CarryOut
TOFFOLI
C-NOT
TOFFOLI
C-NOT
TOFFOLI
TOFFOLI
C-NOT
TOFFOLI
TOFFOLI
C-NOT
TOFFOLI
TOFFOLI
C-NOT
TOFFOLI
C-NOT
TOFFOLI
TOFFOLI
C-NOT
C-NOT
TOFFOLI
TOFFOLI
C-NOT
C-NOT
TOFFOLI
TOFFOLI
C-NOT
C-NOT
TOFFOLI
C-NOT
ExampleCircuitEquivalenceLibrary
pascal.heus.name
1.0
SWAP
A SWAP gate equivalent using 3 C-NOT gates. The I/O are swapped as input of the second gate.
C-NOT
C-NOT
C-NOT
C-NOT
C-NOT gate equivalent composed of two Hadamard and one Controlled-Z
H
C-Z
H
X
NOT gate equivalent circuit made of two "Square root of not" gates
SQRT-NOT
SQRT-NOT
TOFFOLI
A Toffoli gate equivalent made only of Hadamard, Phase, C-Not and Pi/8 gates (source: "Quantum Computation and Quantum Information", Nielsen/Chuang, p.182)
H
C-NOT
T
C-NOT
T
C-NOT
T
C-NOT
T
T
C-NOT
H
T
C-NOT
T
S
ProgramLibrary1
pascal.heus.name
1.0
one_plus_one
One plus One
1
2
adder2
two_plus_one
Two plus One
2
4
adder2
six_plus_seven
Six plus Seven
4
7
2
5
8
adder5
2
5
8
11
14
15