Title: A Software Package to Construct Polynomial Sets
1A Software Package to Construct Polynomial
Sets over Z_2 for Determining the Output of
Quantum Computations
Vladimir Gerdt Vasily Severyanov
Laboratory of Information Technologies Joint
Institute for Nuclear Research Dubna, Russia
2Outline
- Main result
- Quantum computation and quantum circuits
- Feynmans sum over paths Polynomials
- QuPol program Quantum Polynomials
- Quantum polynomials
- Conclusion
3Main Result
1. Quantum computing and polynomial equations
over the finite field Z2 by C. M. Dawson et
al arXivquant-ph/0408129 20 Aug 2004
4Quantum Computation and Circuits
5qubit
Quantizing classical bit
any superposition of basis states
In computational basis
6Evolving quantum bit
unitary transformation
7Observing quantum bit
with probability
with probability
8Distinctions of Quantum Computation
- quantum bit (qubit) superposition of basis
states - computation unitary (reversable) evolution
- probabilistic results
- quantum parallelism, interference, and
entanglement - quantum circuit calculates a classical Boolean
function using the peculiarities of quantum
computation
9Quantum computation
Unitary transformation computing function
Initial state
Final state
tensor products of qubits
10Quantum circuit
Quantum circuit is a sequence of elementary
unitary transformations called quantum gates
Quantum gate acts on a few qubits not changing
the others
11Quantum gate bases
Quantum gate basis is a set of universal quantum
gates any unitary transformation can be
presented as a composition of gates of the basis
We work with the following universal gate basis
12Hadamard gate, acts on one qubit
13Toffoli gate, acts on three qubits
14Matrix elements of quantum circuit
15Feynman's sum over paths
16From quantum to classical circuit
We wish to use famous Feynmans sum-over-paths
method to calculate the matrix element for a
quantum circuit built of the Toffoli and Hadamard
gates (these two constitute a universal basis).
To do that, we replace the quantum circuit under
consideration by its classical version where the
quantum Toffoli and Hadamard gates are replaced
by their classical counterparts.
Classical Toffoli
Classical Hadamard
Output may be 0 or 1 for any input
17Example circuit
quantum circuit
classical circuit
path variables
18Admissible classical paths
A classical path is a sequence of classical bit
strings obtained after each classical gate has
been applied.
A choice of the path variables determines an
admissible classical path.
19Phase of admissible classical path
Toffoli gates do not contribute to phase
20Quantum circuits matrix element
admissible paths form a to b
number of Hadamard gates
number of positive terms
number of negative terms
this equations count solutions to a system of n1
polynomials in h variables over the field Z2
21Program Quantum Polynomials
22Elementary decomposition of a circuit
elementary gates
Elementary gates enable us to assemble a
classical form of a quantum circuit
23E - elementary gates
Identities
Multiplication modulo 2
Addition modulo 2
Hadamard
24Elementary gates - Identities
25Elementary gates - Operations
26Assembling circuit, step 0
Let we want to assemble a circuits with 3 rows
and 4 columns
27Assembling circuit, step 1
We place elementary gates in cells
28Assembling circuit, step 2
29Assembling circuit, step 3
30Assembling circuit, step 4
31QuPol - General View
elementary gates toolbar
menu toolbar
window for assembling circuit
circuit polynomials
32QuPol - Assembling circuit
- New circuit
- Selecting gates
- Placing gates
- Constructing polynomials
- Saving circuit
- Opening circuit
33New circuit dialogue
click
34New circuit
The simplest possible circuit only identities
are used
35Placing gates, step 1
click selecting gate
click placing gate
36Placing gates, step 2
click
click
37Placing gates, step 3
click
click
38Placing gates, step 4
many clicks to select and place gates
39Constructing polynomials
click
40Saving circuit
click
41Opening circuit
click
42Opening circuit, finished
43Symbolic form of polynomials
x_1 a_2x_2-b_1, x_4 a_4x_7
x_1x_4x_7 a_2x_2x_4x_7-b_2, x_5
a_4x_3 a_42x_2 x_1x_4
a_2x_2x_4-b_3, a_4 x_1x_4
a_2x_2x_4-b_4, x_7-b_5, x_6 a_4x_3
a_42x_2 x_1x_3x_4 a_4x_1x_2x_4
a_2x_2x_3x_4
a_2a_4x_22x_4-b_6, a_1x_1 a_3x_2
a_5x_3 a_2x_4 x_2x_5 a_6x_6 x_3x_7
a_4x_2x_7
44C name space Polynomial_Modulo_2
- class Polynomial - list of monomials
- class Monomial - list of letters
- class Letter - letter with index and power
45Quantum Polynomials
46Circuit Matrix
A system generated by the program is a finite set
of polynomials in the ring
One has to count the number of roots N0 and N1
in Z2 of the sets
Then the matrix is
47Computing Matrix Elements
To count the number of roots we convert F0 and F1
into the triangular form by computing the
lexicographical Gröbner basis by means of the
Buchberger algorithm or by involutive algorithm
(Gerdt04).
We illustrate this by example from Dawson et al
48Computing Matrix Elements (cont)
Lexicographical Gröbner basis with and for F0
and F1
some matrix elements
49References
- Christopher M. Dawson et al.,Quantum computing
and polynomial equations over the finite field
Z2,arXivquant-ph/0408129, 2004. - Gerdt V.P. Involutive Algorithms for Computing
Gröbner Bases, Proceedings of the NATO Advanced
Research Workshop "Computational commutative and
non-commutative algebraic geometry" (Chishinau,
June 6-11, 2004), IOS Press, to appear. - Microsoft Visual C .net Standard, Version 2003
50Conclusion
- The first version of a program tool for
assembling arbitrary quantum circuits and for
constructing quantum polynomial systems has been
designed. - There is the algorithmic Gröbner basis approach
to converting the system of quantum polynomials
into a triangular form which is useful for
computing the number of solutions. - The number of solutions uniquely determines the
circuit matrix. - Thus the above software and algorithmic methods
provide a tool for simulating quantum circuits.
51Thanks for Your Attention !