On the Principles of Differential Quantum Programming Languages

Total Page:16

File Type:pdf, Size:1020Kb

On the Principles of Differential Quantum Programming Languages On the Principles of Differential Quantum Programming Languages Shaopeng Zhu Shih-Han Hung Shouvanik Chakrabarti Xiaodi Wu University of Maryland, College Park, USA Abstract where near-term Noisy Intermediate-Scale Quantum (NISQ) Variational Quantum Circuits (VQCs), or the so-called quan- computers [37], e.g., the 53-qubit quantum machine from tum neural-networks, are predicted to be one of the most im- Google [2] and IBM [20], becomes the important platform for portant near-term quantum applications, not only because of demonstrating quantum applications. Variational quantum their similar promises as classical neural-networks, but also circuits (VQCs) [15, 16, 35], or the so-called quantum neural because of their feasibility on near-term noisy intermediate- networks, are predicted to be one of the most important ap- size quantum (NISQ) machines. The need for gradient infor- plications on NISQ machines. This is not only because VQCs mation in the training procedure of VQC applications has bear a lot of similar promises like classical neural networks as stimulated the interest and development of auto-differentiation well as potential quantum speed-ups from the perspective of techniques on quantum circuits. We propose the first formal- machine learning (e.g., see the survey [8]), but also because ization of this technique, not only in the context of quantum VQC is, if not the only, one of the few candidates that can circuits but also for imperative quantum programs (e.g., with be implemented on NISQ machines. Because of this, a lot of controls), inspired by the success of differential programming study has already been devoted to the design, analysis, and languages in classical machine learning. In particular, we small-scale implementation of VQC (e.g., see the survey [6]). overcome a few unique difficulties caused by exotic quantum Typical VQC applications replace classical neural net- features (such as quantum no-cloning) and provide a rigor- works, which are just parameterized classical circuits, by ous formulation of differentiation applied to bounded-loop quantum circuits with classically parameterized unitary gates. imperative quantum programs, its code-transformation rules, Namely, one will have a "quantum" mapping from input to as well as a sound logic to reason about their correctness. output replacing classical mapping in machine learning ap- Moreover, we have implemented our code transforma- plications. An important component of these applications tion in OCaml and demonstrated the resource-efficiency of is a training procedure which optimizes a loss function the our scheme both analytically and empirically. We also con- now depends on the read-outs and the parameters of VQCs. duct a case study of training a VQC instance with controls, It is well-known that gradient-based approaches are the which shows the advantage of our scheme over existing best for the training procedure. However, computing the auto-differentiation on quantum circuits without controls. gradients of loss functions that depend on the read-outs of quantum circuits has a similar complexity of simulating quan- Keywords quantum programming languages, differential tum circuits, which is infeasible for classical computation. programming languages, auto differentiation, quantum ma- Thus, the ability of evaluating these "quantum" gradients effi- chine learning, collection of semantics ciently by quantum computation is critical for the scalability of VQC applications, e.g., on the recent 53-qubit machines. 1 Introduction Fortunately, analytical formulas of gradients used in VQCs Background. Recent years have witnessed the rapid de- have been studied by [16, 19, 29, 41, 42]. In particular, Schuld velopment of quantum computing, with practical advances et al. [41] proposed the so-called phase-shift rule that uses coming from both research and industry. Quantum program- two quantum circuits to compute the partial derivative re- ming is one topic that has been actively investigated. Early spective to one parameter for quantum circuits. One of the work on language design [22, 32, 39, 40, 44] has been fol- very successful tools for quantum machine learning, called lowed up recently by several implementations of these lan- PennyLane [7], implemented the phase-shift rule to achieve guages, including Quipper [24], Scaffold [1], LIQUiji [49], auto differentiation (AD) for the read-outs of quantum cir- Q# [46], and QWIRE [33]. Extensions of program logics have cuits. It also integrated automatic differentiation from es- also been proposed for verification of quantum programs tablished machine learning libraries such as TensorFlow or [3, 9, 10, 17, 27, 52, 55]. See also surveys [18, 43, 53]. PyTorch for any additional classical calculation in the train- With the availability of prototypes of quantum machines, ing procedure. However, none of these research was con- especially the recent establishment of quantum supremacy [2], ducted from the perspective of programming languages and the research of quantum computing has entered a new stage no rigorous foundation or principles have been formalized. Draft paper, November 22, 2019, Motivations. An important motivation of this paper is to 2020. provide a rigorous formalization of the auto-differentiation 1 Draft paper, November 22, 2019, S. Zhu, S. Hung, S. Chakrabarti &X.Wu technique applied to quantum circuits. In particular, we natural choice also serves the purpose of gradients computa- will provide a formal formulation of quantum programs, tion of loss functions in quantum machine learning applica- their semantics, and the meaning of differentiation on them. tions, which are typically phrased in terms of these read-outs. We will also study the code-transformation rules for auto- We also directly model the parameterization of quantum pro- differentiation and prove their correctness. grams after VQCs, i.e., each unitary gate becomes classically As we will highlight below, research on the formalization parameterized. The above modeling of quantum programs is will encounter many new challenges that have not been con- very different from classical ones. It is also unclear whether sidered and addressed by existing results [16, 19, 29, 41, 42]. any reasonable analogues of classical chain-rule and for- Consider one of the basic requirements, e.g., composition- ward/backward mode can exist within quantum programs. ality. As we will show, differentiating the composition of To model the meaning of one quantum program com- quantum programs will necessarily involve running multi- puting the derivative of another, we define the differential ple quantum programs on copies of initial quantum states. semantics of programs. There is a subtle quantum-unique How to represent the collection of quantum programs suc- design choice. The observable semantics of any quantum pro- cinctly and also bound the number of required copies is a gram will depend on the observable and its input state. Thus, totally new question. Among our techniques to address this any program computing its derivative could potentially de- question, we also need to change the previously proposed pend on these two extra factors. We find out this potential construct, e.g., the phase-shift rule [41], to something else. dependence is undesirable and propose the strongest possi- Moreover, we want to go beyond the restriction to quan- ble definition: i.e., one derivative computing program should tum circuits in [16, 19, 29, 41, 42]. We are inspired by classical work for any pair of observable and input states. We demon- machine learning examples that demonstrate the advantage strate that this strong requirement is not only achievable but of neural-networks with program features (e.g. controls) also critical for the composition of auto differentiation. over the plain ones (e.g., classical circuits) [23, 25], which is We are ready to describe the technical challenges for the also the major motivation of promoting the the paradigm compositionality. Consider the following quantum program: shift from deep learning towards differential programming QMUL ≡ U ¹θº;U ¹θº; (1.4) by prominent machine learning researchers. 1 2 Augmenting VQCs with controls is not only feasible on which performs U1¹θº and U2¹θº gates sequentially. Note NISQ machines (at least for simple ones), but also now a that gate application is matrix multiplication in quantum. logical step for the study of their applications in machine Roughly speaking, if the product rule of differentiation (as learning. (We indeed conduct one case study in Section 8.) exhibited in (1.3)) remains in the quantum setting, at least Thus, we are inspired to investigate the principles of dif- @ symbolically, then one should expect @θ ¹QMULº contains ferential quantum imperative languages beyond circuits. @ @ Research challenges & Solutions. We will rely on a little ¹U1¹θºº;U2¹θº and U1¹θº; ¹U2¹θºº (1.5) @θ @θ notation that should be self-explanatory. Please refer to a detailed preliminary on quantum information in Section 2. two different parts as sub-programs similarly in (1.3). @ ¹ ¹ ºº ¹ º @ ¹ ¹ ºº Let us start with a simple classical program However, we cannot run @θ U1 θ ;U2 andU1 θ ; @θ U2 θ together due to the quantum no-cloning theorem [51]. This MUL ≡ v3 = v1 × v2; (1.1) is because they share the same initial state and we cannot clone two copies of it and maintain the correct correlation where v3 is the product of v1 and v2. Consider the differenti- among different parts. Note that this is not an issue classi- ation with respect to θ, we have cally as we can store all vi;vÛi at the same time as in (1.3). @ As a result, quantum differentiation needs to run multiple ¹MULº ≡ v = v × v ; (1.2) @θ 3 1 2 (sub-)programs on multiple copies of the initial state. This poses a unique challenge for differentiation of quan- vÛ3 = vÛ1 × v2 + v1 ×v Û2; (1.3) tum composition: (1) we hope to have a simple scheme of where MUL keeps track of variablesv1;v2;v3 and their deriva- code transformation, ideally close-to-classical, for intuition tives vÛ1;vÛ2;vÛ3 at the same time.
Recommended publications
  • Quantum Computing: Principles and Applications
    Journal of International Technology and Information Management Volume 29 Issue 2 Article 3 2020 Quantum Computing: Principles and Applications Yoshito Kanamori University of Alaska Anchorage, [email protected] Seong-Moo Yoo University of Alabama in Huntsville, [email protected] Follow this and additional works at: https://scholarworks.lib.csusb.edu/jitim Part of the Communication Technology and New Media Commons, Computer and Systems Architecture Commons, Information Security Commons, Management Information Systems Commons, Science and Technology Studies Commons, Technology and Innovation Commons, and the Theory and Algorithms Commons Recommended Citation Kanamori, Yoshito and Yoo, Seong-Moo (2020) "Quantum Computing: Principles and Applications," Journal of International Technology and Information Management: Vol. 29 : Iss. 2 , Article 3. Available at: https://scholarworks.lib.csusb.edu/jitim/vol29/iss2/3 This Article is brought to you for free and open access by CSUSB ScholarWorks. It has been accepted for inclusion in Journal of International Technology and Information Management by an authorized editor of CSUSB ScholarWorks. For more information, please contact [email protected]. Journal of International Technology and Information Management Volume 29, Number 2 2020 Quantum Computing: Principles and Applications Yoshito Kanamori (University of Alaska Anchorage) Seong-Moo Yoo (University of Alabama in Huntsville) ABSTRACT The development of quantum computers over the past few years is one of the most significant advancements in the history of quantum computing. D-Wave quantum computer has been available for more than eight years. IBM has made its quantum computer accessible via its cloud service. Also, Microsoft, Google, Intel, and NASA have been heavily investing in the development of quantum computers and their applications.
    [Show full text]
  • Arxiv:2103.11307V1 [Quant-Ph] 21 Mar 2021
    QuClassi: A Hybrid Deep Neural Network Architecture based on Quantum State Fidelity Samuel A. Stein1,4, Betis Baheri2, Daniel Chen3, Ying Mao1, Qiang Guan2, Ang Li4, Shuai Xu3, and Caiwen Ding5 1 Computer and Information Science Department, Fordham University, {sstein17, ymao41}@fordham.edu 2 Department of Computer Science, Kent State University, {bbaheri, qguan}@kent.edu 3 Computer and Data Sciences Department,Case Western Reserve University, {txc461, sxx214}@case.edu 4 Pacific Northwest National Laboratory (PNNL), Email: {samuel.stein, ang.li}@pnnl.gov 5 University of Connecticut, Email: [email protected] Abstract increasing size of data sets raises the discussion on the future of DL and its limitations [42]. In the past decade, remarkable progress has been achieved in In parallel with the breakthrough of DL in the past years, deep learning related systems and applications. In the post remarkable progress has been achieved in the field of quan- Moore’s Law era, however, the limit of semiconductor fab- tum computing. In 2019, Google demonstrated Quantum rication technology along with the increasing data size have Supremacy using a 53-qubit quantum computer, where it spent slowed down the development of learning algorithms. In par- 200 seconds to complete a random sampling task that would allel, the fast development of quantum computing has pushed cost 10,000 years on the largest classical computer [5]. Dur- it to the new ear. Google illustrates quantum supremacy by ing this time, quantum computing has become increasingly completing a specific task (random sampling problem), in 200 available to the public. IBM Q Experience, launched in 2016, seconds, which is impracticable for the largest classical com- offers quantum developers to experience the state-of-the-art puters.
    [Show full text]
  • Off-The-Shelf Components for Quantum Programming and Testing
    Off-the-shelf Components for Quantum Programming and Testing Cláudio Gomesa, Daniel Fortunatoc, João Paulo Fernandesa and Rui Abreub aCISUC — Departamento de Engenharia Informática da Universidade de Coimbra, Portugal bFaculty of Engineering of the University of Porto, Portugal cInstituto Superior Técnico, University of Lisbon, Portugal Abstract In this position paper, we argue that readily available components are much needed as central contribu- tions towards not only enlarging the community of quantum computer programmers, but also in order to increase their efficiency and effectiveness. We describe the work we intend to do towards providing such components, namely by developing and making available libraries of quantum algorithms and data structures, and libraries for testing quantum programs. We finally argue that Quantum Computer Programming is such an effervescent area that synchronization efforts and combined strategies within the community are demanded to shorten the time frame until quantum advantage is observed and can be explored in practice. Keywords Quantum Computing, Software Engineering, Reusable Components 1. Introduction There is a large body of compelling evidence that Computation as we have known and used for decades is under challenge. As new models for computation emerge, its limits are being pushed beyond what pragmatically had been seen in practice. In this line, Quantum Computing (QC) has received renewed worldwide attention. Having its foundations been thoroughly studied, mainly from the point of view of its physical implementation, their potential has, even if preliminarily, is currently being witnessed. A quantum computer can potentially solve various problems that a classical computer cannot solve efficiently; this is known as Quantum Supremacy.
    [Show full text]
  • Student User Experience with the IBM Qiskit Quantum Computing Interface
    Proceedings of Student-Faculty Research Day, CSIS, Pace University, May 4th, 2018 Student User Experience with the IBM QISKit Quantum Computing Interface Stephan Barabasi, James Barrera, Prashant Bhalani, Preeti Dalvi, Ryan Kimiecik, Avery Leider, John Mondrosch, Karl Peterson, Nimish Sawant, and Charles C. Tappert Seidenberg School of CSIS, Pace University, Pleasantville, New York Abstract - The field of quantum computing is rapidly Schrödinger [11]. Quantum mechanics states that the position expanding. As manufacturers and researchers grapple with the of a particle cannot be predicted with precision as it can be in limitations of classical silicon central processing units (CPUs), Newtonian mechanics. The only thing an observer could quantum computing sheds these limitations and promises a know about the position of a particle is the probability that it boom in computational power and efficiency. The quantum age will be at a certain position at a given time [11]. By the 1980’s will require many skilled engineers, mathematicians, physicists, developers, and technicians with an understanding of quantum several researchers including Feynman, Yuri Manin, and Paul principles and theory. There is currently a shortage of Benioff had begun researching computers that operate using professionals with a deep knowledge of computing and physics this concept. able to meet the demands of companies developing and The quantum bit or qubit is the basic unit of quantum researching quantum technology. This study provides a brief information. Classical computers operate on bits using history of quantum computing, an in-depth review of recent complex configurations of simple logic gates. A bit of literature and technologies, an overview of IBM’s QISKit for information has two states, on or off, and is represented with implementing quantum computing programs, and two a 0 or a 1.
    [Show full text]
  • Introduction to Quantum Programming
    Introduction to Quantum Programming Jaros law Miszczak IITiS PAN April 27, 2018 QIPLSIGML|Machine Learning meets Quantum Computation Introduction to Quantum Programming 1/40 Our goals Quantum programming Manipulation of quantum gates Programming QRAM High-level programming What next? Q? Introduction to Quantum Programming 2/40 I Introduce various approaches to quantum programming. I Write some code. Our goals I Understand the difference between quantum and classical programming. Introduction to Quantum Programming 3/40 I Write some code. Our goals I Understand the difference between quantum and classical programming. I Introduce various approaches to quantum programming. Introduction to Quantum Programming 3/40 Our goals I Understand the difference between quantum and classical programming. I Introduce various approaches to quantum programming. I Write some code. Introduction to Quantum Programming 3/40 Our goals I Understand the difference between quantum and classical programming. I Introduce various approaches to quantum programming. I Write some code. ( Talk is cheap. Show me the quantum code.) ≡ Introduction to Quantum Programming 3/40 Quantum programming Introduction to Quantum Programming 4/40 Quantum programming What is quantum programming? Quantum programming is a process that leads from an original formulation of a computing problem to executable quantum computer programs. Introduction to Quantum Programming 5/40 I The process of preparing programs for a quantum computer is especially attractive because it not only can be economically and scientifically rewarding, it can also be an aesthetic experience much like composing poetry or music. I Only the modern quantum computer has made quantum programming both challenging and relevant. Quantum programming What is quantum programming? I The only way to learn a new quantum programming language is by writing programs in it.
    [Show full text]
  • High Energy Physics Quantum Information Science Awards Abstracts
    High Energy Physics Quantum Information Science Awards Abstracts Towards Directional Detection of WIMP Dark Matter using Spectroscopy of Quantum Defects in Diamond Ronald Walsworth, David Phillips, and Alexander Sushkov Challenges and Opportunities in Noise‐Aware Implementations of Quantum Field Theories on Near‐Term Quantum Computing Hardware Raphael Pooser, Patrick Dreher, and Lex Kemper Quantum Sensors for Wide Band Axion Dark Matter Detection Peter S Barry, Andrew Sonnenschein, Clarence Chang, Jiansong Gao, Steve Kuhlmann, Noah Kurinsky, and Joel Ullom The Dark Matter Radio‐: A Quantum‐Enhanced Dark Matter Search Kent Irwin and Peter Graham Quantum Sensors for Light-field Dark Matter Searches Kent Irwin, Peter Graham, Alexander Sushkov, Dmitry Budke, and Derek Kimball The Geometry and Flow of Quantum Information: From Quantum Gravity to Quantum Technology Raphael Bousso1, Ehud Altman1, Ning Bao1, Patrick Hayden, Christopher Monroe, Yasunori Nomura1, Xiao‐Liang Qi, Monika Schleier‐Smith, Brian Swingle3, Norman Yao1, and Michael Zaletel Algebraic Approach Towards Quantum Information in Quantum Field Theory and Holography Daniel Harlow, Aram Harrow and Hong Liu Interplay of Quantum Information, Thermodynamics, and Gravity in the Early Universe Nishant Agarwal, Adolfo del Campo, Archana Kamal, and Sarah Shandera Quantum Computing for Neutrino‐nucleus Dynamics Joseph Carlson, Rajan Gupta, Andy C.N. Li, Gabriel Perdue, and Alessandro Roggero Quantum‐Enhanced Metrology with Trapped Ions for Fundamental Physics Salman Habib, Kaifeng Cui1,
    [Show full text]
  • Introduction to Quantum Computing and Its Applications to Cyber Security
    Introduction to Quantum Computing and its Applications to Cyber Security Raj Jain Washington University in Saint Louis Saint Louis, MO 63130 [email protected] These slides and audio/video recordings of this class lecture are at: http://www.cse.wustl.edu/~jain/cse570-19/ Washington University in St. Louis http://www.cse.wustl.edu/~jain/ ©2019 Raj Jain 19-1 Overview 1. What is a Quantum and Quantum Bit? 2. Matrix Algebra Review 3. Quantum Gates: Not, And, or, Nand 4. Applications of Quantum Computing 5. Quantum Hardware and Programming Washington University in St. Louis http://www.cse.wustl.edu/~jain/ ©2019 Raj Jain 19-2 What is a Quantum? Quantization: Analog to digital conversion Quantum = Smallest discrete unit Quantum Wave Theory: Light is a wave. It has a frequency, phase, amplitude Quantum Mechanics: Light behaves like discrete packets of energy that can be absorbed and released Wave Photon = One quantum of light energy Photon Photons can move an electron from one energy level to next higher level Photons are released when an electron moves from one level to lower energy level Electrons Washington University in St. Louis http://www.cse.wustl.edu/~jain/ ©2019 Raj Jain 19-3 Probabilistic Behavior Young’s Double-Slit Experiment 1801 Photons The two waves exiting the slits interfere. Interference is constructive at some spots and destructive at others ⇒ Probabilistic Washington University in St. Louis http://www.cse.wustl.edu/~jain/ ©2019 Raj Jain 19-4 Quantum Bits 1. Computing bit is a binary scalar: 0 or 1 10 or 2. Quantum bit (Qubit) is a 2×1 vector: 01 3.
    [Show full text]
  • Towards a Quantum Programming Language
    The final version of this paper appeared in Math. Struct. in Comp. Science 14(4):527-586, 2004 Towards a Quantum Programming Language P E T E R S E L I N G E R y Department of Mathematics and Statistics University of Ottawa Ottawa, Ontario K1N 6N5, Canada Email: [email protected] Received 13 Nov 2002, revised 7 Jul 2003 We propose the design of a programming language for quantum computing. Traditionally, quantum algorithms are frequently expressed at the hardware level, for instance in terms of the quantum circuit model or quantum Turing machines. These approaches do not encourage structured programming or abstractions such as data types. In this paper, we describe the syntax and semantics of a simple quantum programming language with high-level features such as loops, recursive procedures, and structured data types. The language is functional in nature, statically typed, free of run-time errors, and it has an interesting denotational semantics in terms of complete partial orders of superoperators. 1. Introduction Quantum computation is traditionally studied at the hardware level: either in terms of gates and circuits, or in terms of quantum Turing machines. The former viewpoint emphasizes data flow and neglects control flow; indeed, control mechanisms are usually dealt with at the meta-level, as a set of instructions on how to construct a parameterized family of quantum circuits. On the other hand, quantum Turing machines can express both data flow and control flow, but in a sense that is sometimes considered too general to be a suitable foundation for implementations of future quantum computers.
    [Show full text]
  • Quantum Computing in the Automotive Industry
    Quantum Computing in the Automotive Industry Applications, Opportunities, Challenges and Legal Risks Contents Introduction 1 Possible applications or use cases in the automotive industry 2 Quantum Computing 3 Quantum Physics 4 Quantum Physics 6 Quantum Computing 8 Quantum Error Correction (QEC) 10 Legal Implications and Risks of Quantum Computing 11 Introduction Quantum Computing is a new buzzword1 – generally in the IT and high-tech industries and also already in the automotive industry2. In fact, according to McKinsey, 10% of all potential use cases for quantum computing could benefit the automotive industry, with a high impact to be expected by 20253. Quantum computing will have real implications, This is possible because quantum computing builds benefits and risks for the automotive industry. on the advantages of the laws of quantum physics, More generally, it is a disruptive technology as where subatomic particles can exist in more than regards high performance computers and super- one state at any one time; their behaviour causes computing processes. quantum computers to be more powerful, efficient and faster than the conventional digital A key advantage of quantum computing is that its supercomputers. computing processes are much faster as they are no longer based on algorithms and mathematics, but on quantum physics (see below III. and IV.); quantum computers are able to do several calculations at the same time (in contrast to traditional computers) which make them exponentially faster. 1 From quantum advantage (Digitale Welt 2/2021, p. 86) February 2021, p. 8. https://www.bosch.com/stories/how- https://digitaleweltmagazin.de/d/magazin/DW_21_02.pdf and quantum-computing-can-tilt-the-computational-landscape/ Google’s alleged Quantum Supremacy via the EU Commission’s 2 A very easy to read, almost colloquial but still informative Quantum Technologies Flagship https://digital- introduction is by Dr.
    [Show full text]
  • Quantum Transpiler Optimization: on the Development, Implementation, and Use of a Quantum Research Testbed
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by AFTI Scholar (Air Force Institute of Technology) Air Force Institute of Technology AFIT Scholar Theses and Dissertations Student Graduate Works 3-2020 Quantum Transpiler Optimization: On the Development, Implementation, and Use of a Quantum Research Testbed Brandon K. Kamaka Follow this and additional works at: https://scholar.afit.edu/etd Part of the Computer Sciences Commons Recommended Citation Kamaka, Brandon K., "Quantum Transpiler Optimization: On the Development, Implementation, and Use of a Quantum Research Testbed" (2020). Theses and Dissertations. 3590. https://scholar.afit.edu/etd/3590 This Thesis is brought to you for free and open access by the Student Graduate Works at AFIT Scholar. It has been accepted for inclusion in Theses and Dissertations by an authorized administrator of AFIT Scholar. For more information, please contact [email protected]. Quantum Transpiler Optimization: On the Development, Implementation, and Use of a Quantum Research Testbed THESIS Brandon K Kamaka AFIT-ENG-MS-20-M-029 DEPARTMENT OF THE AIR FORCE AIR UNIVERSITY AIR FORCE INSTITUTE OF TECHNOLOGY Wright-Patterson Air Force Base, Ohio DISTRIBUTION STATEMENT A APPROVED FOR PUBLIC RELEASE; DISTRIBUTION UNLIMITED. The views expressed in this document are those of the author and do not reflect the official policy or position of the United States Air Force, the United States Department of Defense or the United States Government. This material is declared a
    [Show full text]
  • Logic Synthesis for Quantum Computing Mathias Soeken, Martin Roetteler, Nathan Wiebe, and Giovanni De Micheli
    1 Logic Synthesis for Quantum Computing Mathias Soeken, Martin Roetteler, Nathan Wiebe, and Giovanni De Micheli Abstract—Today’s rapid advances in the physical implementa- 1) Quantum computers process qubits instead of classical tion of quantum computers call for scalable synthesis methods to bits. A qubit can be in superposition and several qubits map practical logic designs to quantum architectures. We present can be entangled. We target purely Boolean functions as a synthesis framework to map logic networks into quantum cir- cuits for quantum computing. The synthesis framework is based input to our synthesis algorithms. At design state, it is on LUT networks (lookup-table networks), which play a key sufficient to assume that all input values are Boolean, role in state-of-the-art conventional logic synthesis. Establishing even though entangled qubits in superposition are even- a connection between LUTs in a LUT network and reversible tually acted upon by the quantum hardware. single-target gates in a reversible network allows us to bridge 2) All operations on qubits besides measurement, called conventional logic synthesis with logic synthesis for quantum computing—despite several fundamental differences. As a result, quantum gates, must be reversible. Gates with multiple our proposed synthesis framework directly benefits from the fanout known from classical circuits are therefore not scientific achievements that were made in logic synthesis during possible. Temporarily computed values must be stored the past decades. on additional helper qubits, called ancillae. An intensive We call our synthesis framework LUT-based Hierarchical use of intermediate results therefore increases the qubit Reversible Logic Synthesis (LHRS).
    [Show full text]
  • Programming Gate-Based Hardware Quantum Computers for Music
    DOI https://doi.org/10.2298/MUZ1824021K UDC 789.983 004.9:78 Programming Gate-based Hardware Quantum Computers for Music Alexis Kirke1 University of Plymouth, School of Humanities and Performing Arts Received: 17 April 2018 Accepted: 7 May 2018 Original scientific paper Abstract There have been significant attempts previously to use the equations of quantum mechanics for generating sound, and to sonify simulated quantum processes. For new forms of computation to be utilized in computer music, eventually hardware must be utilized. This has rarely happened with quantum computer music. One reason for this is that it is currently not easy to get access to such hardware. A second is that the hardware available requires some understanding of quantum computing theory. Tis paper moves forward the process by utilizing two hardware quantum computation systems: IBMQASM v1.1 and a D-Wave 2X. It also introduces the ideas behind the gate-based IBM system, in a way hopefully more accessible to computer- literate readers. Tis is a presentation of the frst hybrid quantum computer algorithm, involving two hardware machines. Although neither of these algorithms explicitly utilize the promised quantum speed-ups, they are a vital frst step in introducing QC to the musical feld. Te article also introduces some key quantum computer algorithms and discusses their possible future contribution to computer music. Keywords: quantum computer music, algorithms, D-Wave Introduction: Quantum Computing Why Quantum Computing? The typical answer is speed. Quantum mechanics models the world by considering a physical state as a sum of all its possible configu- rations. For example, the physical state of an electron is modeled as a weighted sum of a large number of vectors (called eigenvectors), each of which represents somet- hing that could possibly happen in the physical world.
    [Show full text]