260 likes | 284 Views
Explore a fault-tolerant architecture for simulating quantum Hamiltonians efficiently using Quantum CAD flow. Learn about optimizing error correction synthesis, datapath synthesis, and mapping stages for quantum systems. Discover strategies for simulating Hamiltonians and implementing standard and selective error correction techniques.
E N D
A Fault-tolerant Architecture for Quantum Hamiltonian Simulation Guoming Wang Oleg Khainovski
Background • Quantum Mechanical Systems are everywhere • nuclear reaction, chemical molecules, superconductor, DNA, ...... • Quantum system’s states are vectors of exponential length in the number of particles it contains Large-scale quantum systems are hard to simulate on classical computers • Quantum simulation is the original motivation for building a quantum computer [suggested by Richard Feynman in 1982] • Efficient simulation of quantum systems is perhaps the most important application of quantum computers
Hamiltonian • Shrödinger’s Equation • H(t) -- Hamiltonian • a matrix that represents total energy of the system • usually a sum of local terms 2D Ising Model
Hamiltonian Simulation • For time-independent Hamiltonian • Time-independent Hamiltonian Simulation Problem • Given the description of a Hamiltonian H and a time t, build a polynomial-size quantum circuit that approximates the unitary transformation
Quantum CAD flow Circuit Specification DatapathSynthesis Encoded Circuit Error Correction Synthesis Mapping FU layout & Unmapped Circuit Mapped Circuit Routing Verification Too many failures? Full Layout Success Probability Area & Latency Quantum CAD Flow
Quantum CAD flow FU layout & Unmapped Circuit Encoded Circuit Error Correction Synthesis Mapping Circuit Specification Datapath Synthesis Software Hamiltonian Simulation Problem Mapped Circuit Too many failures? Verification Full Layout Routing Success Probability Area & Latency Our Work • Studied the architecture for Hamiltonian Simulation using Quantum CAD flow • A software that, given a Hamiltonian Simulation problem, generates and optimizes the solution circuit, and then feeds it into the CAD flow • Optimizations to the Error Correction Synthesis, Datapath Synthesis and Mapping stages of the CAD flow
How to Simulate Hamiltonians • Basic Principle • Outline
How to Simulate Hamiltonians • Each local term only acts on few number of qubits, and can be implemented by a relatively small circuit Use Solovay-Kitaev algorithm to find a short sequence of basic instructions
Optimization by Layering • Observation: • The ordering of local terms affects the parallelism of the resulting circuit • define “layers” of local terms --- all local terms in the same layer are independent • Term-by-Term Layer-by-Layer • use a greedy algorithm to find layers
Optimization by Layering • Particularly good for Ising Model • number of layers independent of number of qubits
Standard Error Correction • Quantum Error Correction • Two Stages: • Correct X (bit flip) error • Correct Z (phase flip) error • Standard Error Correction: place correction after every gate • too expensive (>90% physical operations) • more gates and movements more errors?
Selective Error Correction • Selective Error Correction • place fewer corrections on the Critical Error Path • define an Error Distance Threshold • CNOT propagates the input errors • reduced gate count & satisfactory success probability
Selective XZ Error Correction • Observation: • X (Bit flip) and Z (Phase flip) errors have different behaviors • Correct them separately further reduce gate count
Datapath Organizations • Qalypso • variable sized compute and memory regions, ancilla generators, teleportation network • determined based on an analysis of the given circuit or user’s choice
Qalypso+ • Idea: reduce the number of expensive long-range teleportation communications • analyze the given circuit, construct a graph whose vertices are data qubits and edges are their interactions • find a relatively small and balanced cut of this graph • each part of data qubits are assigned to a particular compute region as its “favorite” qubits
Mapping • For every gate in the program order, decide which functional unit is used to execute it and hence how to move the data qubits • evaluate every functional unit to find the best • if a compute region does not like one of the input qubits, then all the functional units it contains will get a penalty • By this rule, every data qubit lives in a particular compute region most of the time and moves out only when necessary • This partitioning and mapping strategy is particularly good for Hamiltonian Simulation Circuits • particles normally interact only with its neighbors
Metric for Probabilistic Computation • Metric: Area-Delay-to-Correct-Result (ADCR) • For ADCR, lower is better.
Experimental Results Effect of Layering for Ising Model
Effect of Layering for General Hamiltonian Experimental Results
Comparison of Datapaths for General Hamiltonian Experimental Results
Comparison of Datapaths for Random Circuit Experimental Results
Comparison of Error Correction Schemes Experimental Results
Effect of Error Distance Threshold Experimental Results
Overall for General Hamiltonian Experimental Results
Overall for General Hamiltonian Experimental Results
Future Direction • Further Improvement to Hamiltonian Simulation • Better Layering? • Better Partitioning and Mapping? • Other aspects: Routing? Ancilla factory? • Extension to Time-dependent Hamiltonian Simulation • Adiabatic algorithms? • Application: studying materials? solving linear systems?