SlideShare a Scribd company logo
1 of 21
Download to read offline
Synthesis of Quantum Circuits
with an Island Genetic Algorithm
Fernando T. Miranda, Pedro Paulo Balbi, and
Pedro C.S. Costa
Synthesis of Quantum Circuits with an Island Genetic Algorithm
● The focus of the paper is finding a unitary decomposition based on the
circuit model of computation.
● From a specific gate set, the goal of this work is to find an equivalent
circuit, through the evolutionary search, for a given unitary U.
Objective Function
Given a unitary matrix U we search for the quantum circuit that produces this
matrix with the greatest possible fidelity
Trace fidelity:
This function quantifies the fidelity of the quantum circuit with respect to the
target unitary.
Ua : unitary given
Ut : the target unitary
n: number of qubits needed to describe Ua
Tr(.): trace operation of a given matrix
However, by the Solovay-Kitaev theorem, we know that the ideal solution cannot be achieved
Notice: when Ua = Ut, f = 1.
f ∊ [0,1]
Chromosome Representation
Each item from left-to-right represents a column of the circuit.
({1: (‘H’, -1, None)}, {1: (‘X’, 0, None)}, {2: (‘X’, 1, None)}, {1: (‘X’, 0, None)})
Target qubit - Operation - Controlled-qubit - Parameter
Here, the absence of control is indicated by -1 and the absence of
parameter is indicated by None. The indices are mapped from top to
bottom, with 0 indicating the first qubit.
Chromosome Representation
Each chromosome is made up of B unitary blocks, each one being a
circuit itself.
Types of blocks
Non-controlled block: single column block (depth = 1) without any control
points.
Controlled-block: single column block (depth = 1) with 1 or more control
points.
Helper Block: predefined block with depth greater than 1.
Chromosome Representation (example)
Non-controlled Blocks Controlled Blocks Helper Block
Evolutionary Algorithm
Classical Genetic Algorithms present the problem of premature
convergence:
● Due to the lack of continuous parameters to guide search.
● The exchange of genetic material tends to make individuals too similar.
● Reaching almost always a local maximum.
To overcome this problem an Island Model concept was adopted.
Island Model
In this type of model, different populations (sets of individuals) evolve
independently at first. Later, they exchange genetic material in a process
called migration.
This model is a parallel version of an ordinary GA, where there is a exchange of
information among different populations.
● Each population may follow different evolutionary path.
● This increases diversity and the effectiveness of the search.
Island Model (first step)
● g : number of populations.
● p : number of chromosomes of each population.
● Individuals are created with a number of blocks between 4 and 15 by
randomly generating each one of its blocks.
○ First, a block type is randomly chosen. For non-controller and
controlled blocks, gates and their positions are chosen uniformly at
random.
○ For helper blocks, the type of helper and the control wire is chosen
uniformly at random.
After that, evolution will proceed in the following way:
The first step occurs in isolation within each population
● We pick the leader (individual with the highest fitness) of each population.
● For every individual in the population a new offspring is created:
offspring = leader[:nl] + individual[:ni]
● Then, a single mutation is applied to the offspring
○ if fitness(individual) < fitness(offspring):
replace individual by offspring
○ else:
discard(offspring)
nl = max(1, floor(Bl x rl))
ni = max(1, floor(Bi x ri))
number of blocks in
leader / individual
1st Crossover (example)
rl = 0.3
ri = 0.7
nl = max(1, floor(4 x rl)) = 1
ni = max(1, floor(3 x ri)) = 2
leader
individual
Crossover between Populations
● This operator has a vital role in providing genetic variability to the
evolutionary process. It happens as follow:
● For an individual l in population_i:
○ Pick individual m from population_j; { i ≠ j }
■ Create an offspring with min(B(l),B(m)) number of blocks
○ if fitness(l) < fitness(offspring):
replace individual by offspring
○ else:
discard(offspring)
number of blocks of l / m
Each block of the offspring will be
selected from the homologous
position of individuals l or m, with
equal probability.
Mutation
First, each individual will mutate but the block where the mutation happens is
randomly chosen.
The mutation mechanism for each type of block is described as follow:
● Non controlled block
● Controlled block
Random shuffling: randomly reassigns the control, target, and gates present to new positions
on the wire.
Removal of Control points: only available when there is more that one control point.
Gate change: pick a gate and change its operator.
If both random shuffling and gate change are available only one is applied.
replace the unitary by a random gate
● Random shuffling
● removal of control point
● gate change
Mutation
● Helper blocks
Examples of Mutation:
randomly pick a sub-block, and
mutate it according to its type
Stop Criterion
The algorithm is interrupted when the equation below is smaller or equal to 1x10^(-6). This
criterion is checked after the 2nd crossover process
Where f was defined previously as the trace fidelity function.
The whole process is
summarized in this
graph
Parameters for experiment
rl = 0.7
ri = 0.3
g = 20
p = 30
Maximum number of iterations: 10^4
Block sizes: 4 to 15
Quantum gate set available: {H,S,CNOT,X,X^(1/2),T} including the complex
conjugate of the gates T, S, and X^(1/2).
They also added extra gates like the one provided by IBM Quantum
Experience.
Results
Hadamard Coin for the Quantum Walker
ε < 1x10^(-6)
Found in less than 600 iterations
Eliminating redundancies like HH = I or ZZ = I
Results
Toffoli Gate
ε < 1x10^(-6)
Found in less than 1250 iterations
Eliminating redundancies like
Results
Fredkin Gate
ε < 1x10^(-16)
Found in less than 5000 iterations
Eliminating redundancies like
Conclusions
● The implementation was able to find the solutions in a number of iterations that
were either smaller or comparable to other analogous works.
● However, it doesn’t consider the cost of implementation for each gate.
● One important limitation of the present work relates to the maximum number of
qubits allowed: unitaries with 10 or more qubits will make the search considerably
slower, due to the exponential usage of memory. But this can be relatively easy
to remedy by making use of sparse data structures.
● The size of the unitary seems to affect the number of iterations until a solution is
found. The bigger the longer it takes.
● As we pointed out before, the solutions presented redundant circuit segments.
● A faster convergence can be achieved by introducing more high-level
components into the search space.
● This work provided the proof-of-principle that the island GA can be used for
circuit synthesis, regardless of the practical quantum device used.

More Related Content

Similar to Synthesis of Quantum Circuits with an Island Genetic Algorithm.pdf

Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic AlgorithmSHIMI S L
 
Probability distribution Function & Decision Trees in machine learning
Probability distribution Function  & Decision Trees in machine learningProbability distribution Function  & Decision Trees in machine learning
Probability distribution Function & Decision Trees in machine learningSadia Zafar
 
ML.ppt
ML.pptML.ppt
ML.pptbutest
 
Sequential Monte Carlo algorithms for agent-based models of disease transmission
Sequential Monte Carlo algorithms for agent-based models of disease transmissionSequential Monte Carlo algorithms for agent-based models of disease transmission
Sequential Monte Carlo algorithms for agent-based models of disease transmissionJeremyHeng10
 
Histogram-Based Method for Effective Initialization of the K-Means Clustering...
Histogram-Based Method for Effective Initialization of the K-Means Clustering...Histogram-Based Method for Effective Initialization of the K-Means Clustering...
Histogram-Based Method for Effective Initialization of the K-Means Clustering...Gingles Caroline
 
Cost Optimized Design Technique for Pseudo-Random Numbers in Cellular Automata
Cost Optimized Design Technique for Pseudo-Random Numbers in Cellular AutomataCost Optimized Design Technique for Pseudo-Random Numbers in Cellular Automata
Cost Optimized Design Technique for Pseudo-Random Numbers in Cellular Automataijait
 
Computational intelligence based simulated annealing guided key generation in...
Computational intelligence based simulated annealing guided key generation in...Computational intelligence based simulated annealing guided key generation in...
Computational intelligence based simulated annealing guided key generation in...ijitjournal
 
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...Gota Morota
 
2 Review of Statistics. 2 Review of Statistics.
2 Review of Statistics. 2 Review of Statistics.2 Review of Statistics. 2 Review of Statistics.
2 Review of Statistics. 2 Review of Statistics.WeihanKhor2
 
Iterative Soft Decision Based Complex K-best MIMO Decoder
Iterative Soft Decision Based Complex K-best MIMO DecoderIterative Soft Decision Based Complex K-best MIMO Decoder
Iterative Soft Decision Based Complex K-best MIMO DecoderCSCJournals
 
Iterative Soft Decision Based Complex K-best MIMO Decoder
Iterative Soft Decision Based Complex K-best MIMO DecoderIterative Soft Decision Based Complex K-best MIMO Decoder
Iterative Soft Decision Based Complex K-best MIMO DecoderCSCJournals
 
“Solving QCD: from BG/P to BG/Q”. Prof. Dr. Attilio Cucchieri – IFSC/USP.
“Solving QCD: from BG/P to BG/Q”. Prof. Dr. Attilio Cucchieri – IFSC/USP.“Solving QCD: from BG/P to BG/Q”. Prof. Dr. Attilio Cucchieri – IFSC/USP.
“Solving QCD: from BG/P to BG/Q”. Prof. Dr. Attilio Cucchieri – IFSC/USP.lccausp
 
Outliers
OutliersOutliers
OutliersXuan Le
 
Cuckoo Search Algorithm: An Introduction
Cuckoo Search Algorithm: An IntroductionCuckoo Search Algorithm: An Introduction
Cuckoo Search Algorithm: An IntroductionXin-She Yang
 
Variational Bayes: A Gentle Introduction
Variational Bayes: A Gentle IntroductionVariational Bayes: A Gentle Introduction
Variational Bayes: A Gentle IntroductionFlavio Morelli
 
Higgs Boson Machine Learning Challenge Report
Higgs Boson Machine Learning Challenge ReportHiggs Boson Machine Learning Challenge Report
Higgs Boson Machine Learning Challenge ReportChamila Wijayarathna
 
CS221: HMM and Particle Filters
CS221: HMM and Particle FiltersCS221: HMM and Particle Filters
CS221: HMM and Particle Filterszukun
 

Similar to Synthesis of Quantum Circuits with an Island Genetic Algorithm.pdf (20)

Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Probability distribution Function & Decision Trees in machine learning
Probability distribution Function  & Decision Trees in machine learningProbability distribution Function  & Decision Trees in machine learning
Probability distribution Function & Decision Trees in machine learning
 
ML.ppt
ML.pptML.ppt
ML.ppt
 
Sequential Monte Carlo algorithms for agent-based models of disease transmission
Sequential Monte Carlo algorithms for agent-based models of disease transmissionSequential Monte Carlo algorithms for agent-based models of disease transmission
Sequential Monte Carlo algorithms for agent-based models of disease transmission
 
Histogram-Based Method for Effective Initialization of the K-Means Clustering...
Histogram-Based Method for Effective Initialization of the K-Means Clustering...Histogram-Based Method for Effective Initialization of the K-Means Clustering...
Histogram-Based Method for Effective Initialization of the K-Means Clustering...
 
Cost Optimized Design Technique for Pseudo-Random Numbers in Cellular Automata
Cost Optimized Design Technique for Pseudo-Random Numbers in Cellular AutomataCost Optimized Design Technique for Pseudo-Random Numbers in Cellular Automata
Cost Optimized Design Technique for Pseudo-Random Numbers in Cellular Automata
 
Ga for shortest_path
Ga for shortest_pathGa for shortest_path
Ga for shortest_path
 
Computational intelligence based simulated annealing guided key generation in...
Computational intelligence based simulated annealing guided key generation in...Computational intelligence based simulated annealing guided key generation in...
Computational intelligence based simulated annealing guided key generation in...
 
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...
 
2 Review of Statistics. 2 Review of Statistics.
2 Review of Statistics. 2 Review of Statistics.2 Review of Statistics. 2 Review of Statistics.
2 Review of Statistics. 2 Review of Statistics.
 
ATPG of reversible circuits
ATPG of reversible circuitsATPG of reversible circuits
ATPG of reversible circuits
 
Iterative Soft Decision Based Complex K-best MIMO Decoder
Iterative Soft Decision Based Complex K-best MIMO DecoderIterative Soft Decision Based Complex K-best MIMO Decoder
Iterative Soft Decision Based Complex K-best MIMO Decoder
 
Iterative Soft Decision Based Complex K-best MIMO Decoder
Iterative Soft Decision Based Complex K-best MIMO DecoderIterative Soft Decision Based Complex K-best MIMO Decoder
Iterative Soft Decision Based Complex K-best MIMO Decoder
 
“Solving QCD: from BG/P to BG/Q”. Prof. Dr. Attilio Cucchieri – IFSC/USP.
“Solving QCD: from BG/P to BG/Q”. Prof. Dr. Attilio Cucchieri – IFSC/USP.“Solving QCD: from BG/P to BG/Q”. Prof. Dr. Attilio Cucchieri – IFSC/USP.
“Solving QCD: from BG/P to BG/Q”. Prof. Dr. Attilio Cucchieri – IFSC/USP.
 
Outliers
OutliersOutliers
Outliers
 
Transportation winston
Transportation winstonTransportation winston
Transportation winston
 
Cuckoo Search Algorithm: An Introduction
Cuckoo Search Algorithm: An IntroductionCuckoo Search Algorithm: An Introduction
Cuckoo Search Algorithm: An Introduction
 
Variational Bayes: A Gentle Introduction
Variational Bayes: A Gentle IntroductionVariational Bayes: A Gentle Introduction
Variational Bayes: A Gentle Introduction
 
Higgs Boson Machine Learning Challenge Report
Higgs Boson Machine Learning Challenge ReportHiggs Boson Machine Learning Challenge Report
Higgs Boson Machine Learning Challenge Report
 
CS221: HMM and Particle Filters
CS221: HMM and Particle FiltersCS221: HMM and Particle Filters
CS221: HMM and Particle Filters
 

Recently uploaded

School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)ChandrakantDivate1
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxhublikarsn
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdfKamal Acharya
 
INTERRUPT CONTROLLER 8259 MICROPROCESSOR
INTERRUPT CONTROLLER 8259 MICROPROCESSORINTERRUPT CONTROLLER 8259 MICROPROCESSOR
INTERRUPT CONTROLLER 8259 MICROPROCESSORTanishkaHira1
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiessarkmank1
 
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...ssuserdfc773
 
Computer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesChandrakantDivate1
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdfKamal Acharya
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...Amil baba
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdfAlexander Litvinenko
 
Adsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) pptAdsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) pptjigup7320
 
Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxNANDHAKUMARA10
 
Compressing and Sparsifying LLM in GenAI Applications
Compressing and Sparsifying LLM in GenAI ApplicationsCompressing and Sparsifying LLM in GenAI Applications
Compressing and Sparsifying LLM in GenAI ApplicationsMFatihSIRA
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxMustafa Ahmed
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Ramkumar k
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxMustafa Ahmed
 

Recently uploaded (20)

School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
INTERRUPT CONTROLLER 8259 MICROPROCESSOR
INTERRUPT CONTROLLER 8259 MICROPROCESSORINTERRUPT CONTROLLER 8259 MICROPROCESSOR
INTERRUPT CONTROLLER 8259 MICROPROCESSOR
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
 
Computer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To Curves
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
 
Adsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) pptAdsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) ppt
 
Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptx
 
Compressing and Sparsifying LLM in GenAI Applications
Compressing and Sparsifying LLM in GenAI ApplicationsCompressing and Sparsifying LLM in GenAI Applications
Compressing and Sparsifying LLM in GenAI Applications
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptx
 

Synthesis of Quantum Circuits with an Island Genetic Algorithm.pdf

  • 1. Synthesis of Quantum Circuits with an Island Genetic Algorithm Fernando T. Miranda, Pedro Paulo Balbi, and Pedro C.S. Costa
  • 2. Synthesis of Quantum Circuits with an Island Genetic Algorithm ● The focus of the paper is finding a unitary decomposition based on the circuit model of computation. ● From a specific gate set, the goal of this work is to find an equivalent circuit, through the evolutionary search, for a given unitary U. Objective Function Given a unitary matrix U we search for the quantum circuit that produces this matrix with the greatest possible fidelity
  • 3. Trace fidelity: This function quantifies the fidelity of the quantum circuit with respect to the target unitary. Ua : unitary given Ut : the target unitary n: number of qubits needed to describe Ua Tr(.): trace operation of a given matrix However, by the Solovay-Kitaev theorem, we know that the ideal solution cannot be achieved Notice: when Ua = Ut, f = 1. f ∊ [0,1]
  • 4. Chromosome Representation Each item from left-to-right represents a column of the circuit. ({1: (‘H’, -1, None)}, {1: (‘X’, 0, None)}, {2: (‘X’, 1, None)}, {1: (‘X’, 0, None)}) Target qubit - Operation - Controlled-qubit - Parameter Here, the absence of control is indicated by -1 and the absence of parameter is indicated by None. The indices are mapped from top to bottom, with 0 indicating the first qubit.
  • 5. Chromosome Representation Each chromosome is made up of B unitary blocks, each one being a circuit itself. Types of blocks Non-controlled block: single column block (depth = 1) without any control points. Controlled-block: single column block (depth = 1) with 1 or more control points. Helper Block: predefined block with depth greater than 1.
  • 6. Chromosome Representation (example) Non-controlled Blocks Controlled Blocks Helper Block
  • 7. Evolutionary Algorithm Classical Genetic Algorithms present the problem of premature convergence: ● Due to the lack of continuous parameters to guide search. ● The exchange of genetic material tends to make individuals too similar. ● Reaching almost always a local maximum. To overcome this problem an Island Model concept was adopted.
  • 8. Island Model In this type of model, different populations (sets of individuals) evolve independently at first. Later, they exchange genetic material in a process called migration. This model is a parallel version of an ordinary GA, where there is a exchange of information among different populations. ● Each population may follow different evolutionary path. ● This increases diversity and the effectiveness of the search.
  • 9. Island Model (first step) ● g : number of populations. ● p : number of chromosomes of each population. ● Individuals are created with a number of blocks between 4 and 15 by randomly generating each one of its blocks. ○ First, a block type is randomly chosen. For non-controller and controlled blocks, gates and their positions are chosen uniformly at random. ○ For helper blocks, the type of helper and the control wire is chosen uniformly at random.
  • 10. After that, evolution will proceed in the following way: The first step occurs in isolation within each population ● We pick the leader (individual with the highest fitness) of each population. ● For every individual in the population a new offspring is created: offspring = leader[:nl] + individual[:ni] ● Then, a single mutation is applied to the offspring ○ if fitness(individual) < fitness(offspring): replace individual by offspring ○ else: discard(offspring) nl = max(1, floor(Bl x rl)) ni = max(1, floor(Bi x ri)) number of blocks in leader / individual
  • 11. 1st Crossover (example) rl = 0.3 ri = 0.7 nl = max(1, floor(4 x rl)) = 1 ni = max(1, floor(3 x ri)) = 2 leader individual
  • 12. Crossover between Populations ● This operator has a vital role in providing genetic variability to the evolutionary process. It happens as follow: ● For an individual l in population_i: ○ Pick individual m from population_j; { i ≠ j } ■ Create an offspring with min(B(l),B(m)) number of blocks ○ if fitness(l) < fitness(offspring): replace individual by offspring ○ else: discard(offspring) number of blocks of l / m Each block of the offspring will be selected from the homologous position of individuals l or m, with equal probability.
  • 13. Mutation First, each individual will mutate but the block where the mutation happens is randomly chosen. The mutation mechanism for each type of block is described as follow: ● Non controlled block ● Controlled block Random shuffling: randomly reassigns the control, target, and gates present to new positions on the wire. Removal of Control points: only available when there is more that one control point. Gate change: pick a gate and change its operator. If both random shuffling and gate change are available only one is applied. replace the unitary by a random gate ● Random shuffling ● removal of control point ● gate change
  • 14. Mutation ● Helper blocks Examples of Mutation: randomly pick a sub-block, and mutate it according to its type
  • 15. Stop Criterion The algorithm is interrupted when the equation below is smaller or equal to 1x10^(-6). This criterion is checked after the 2nd crossover process Where f was defined previously as the trace fidelity function.
  • 16. The whole process is summarized in this graph
  • 17. Parameters for experiment rl = 0.7 ri = 0.3 g = 20 p = 30 Maximum number of iterations: 10^4 Block sizes: 4 to 15 Quantum gate set available: {H,S,CNOT,X,X^(1/2),T} including the complex conjugate of the gates T, S, and X^(1/2). They also added extra gates like the one provided by IBM Quantum Experience.
  • 18. Results Hadamard Coin for the Quantum Walker ε < 1x10^(-6) Found in less than 600 iterations Eliminating redundancies like HH = I or ZZ = I
  • 19. Results Toffoli Gate ε < 1x10^(-6) Found in less than 1250 iterations Eliminating redundancies like
  • 20. Results Fredkin Gate ε < 1x10^(-16) Found in less than 5000 iterations Eliminating redundancies like
  • 21. Conclusions ● The implementation was able to find the solutions in a number of iterations that were either smaller or comparable to other analogous works. ● However, it doesn’t consider the cost of implementation for each gate. ● One important limitation of the present work relates to the maximum number of qubits allowed: unitaries with 10 or more qubits will make the search considerably slower, due to the exponential usage of memory. But this can be relatively easy to remedy by making use of sparse data structures. ● The size of the unitary seems to affect the number of iterations until a solution is found. The bigger the longer it takes. ● As we pointed out before, the solutions presented redundant circuit segments. ● A faster convergence can be achieved by introducing more high-level components into the search space. ● This work provided the proof-of-principle that the island GA can be used for circuit synthesis, regardless of the practical quantum device used.