Learning Library

← Back to Library

Quantum Primitives: Simplify Higher-Level Computing

Key Points

  • Quantum primitives are high‑level black‑box abstractions that take a quantum circuit as input and return useful results like probability distributions or expectation values, hiding the low‑level sampling and post‑processing.
  • They let developers focus on application logic rather than the probabilistic nature of quantum measurements, similar to how assembly language is abstracted by higher‑level programming languages.
  • Major quantum hardware providers (e.g., IBM) supply optimized implementations of these primitives, combining the best software and hardware techniques for accurate and efficient outcomes.
  • Using primitives simplifies integration with classical optimizers and accelerates the development of higher‑level quantum applications.

Full Transcript

# Quantum Primitives: Simplify Higher-Level Computing **Source:** [https://www.youtube.com/watch?v=kyLi8Gswpxo](https://www.youtube.com/watch?v=kyLi8Gswpxo) **Duration:** 00:03:12 ## Summary - Quantum primitives are high‑level black‑box abstractions that take a quantum circuit as input and return useful results like probability distributions or expectation values, hiding the low‑level sampling and post‑processing. - They let developers focus on application logic rather than the probabilistic nature of quantum measurements, similar to how assembly language is abstracted by higher‑level programming languages. - Major quantum hardware providers (e.g., IBM) supply optimized implementations of these primitives, combining the best software and hardware techniques for accurate and efficient outcomes. - Using primitives simplifies integration with classical optimizers and accelerates the development of higher‑level quantum applications. ## Sections - [00:00:00](https://www.youtube.com/watch?v=kyLi8Gswpxo&t=0s) **Untitled Section** - ## Full Transcript
0:00what if you could simplify how you use a 0:02quantum computer so you can concentrate 0:04on the higher level applications that 0:06you actually care about 0:07in this video we're going to be talking 0:09about Quantum Primitives which will 0:11hopefully help you accomplish this 0:14earlier videos we looked at how to 0:16program a quantum computer the basic 0:18building block for this is a Quantum 0:20circuit which looks something like this 0:25the quantum circuit 0:27is basically at the same level as 0:29Assembly Language for a classical 0:30computer in fact the open Chasm language 0:33is just that it is an assembly language 0:36that lets you write a Quantum circuit in 0:39code 0:41similarly when you run your Quantum 0:44program 0:45on a quantum computer 0:48you get a low level result out 0:52something that looks like this 0:58one key area that makes Quantum 1:00Computing different than classical 1:01Computing is that it's probabilistic or 1:04when you have a fixed input you can get 1:06different outputs so we run the Circ 1:08circuit or program multiple times and 1:11the output is the number of times you 1:13got each result 1:14however when you're writing higher level 1:17applications this is too level to 1:18typically work with and you want to deal 1:20with higher level constructs 1:22such as probability distributions or 1:25expectation values which are estimates 1:27of observables 1:30this is where Quantum Primitives come 1:32into play 1:34Quantum primitive 1:35is basically 1:37just a black box abstraction where you 1:41give it your Quantum circuit input 1:46and you get the output at the higher 1:48level that you actually care about 1:51inside the primitive 1:54all the details on how you compute this 1:58higher level output and all of the pre 2:00and post processing that are necessary 2:02to compute it are abstract it away from 2:05you you previously and still can do this 2:07manually if you so desire but the 2:10Primitive greatly simplifies how you do 2:12this 2:13then vendors 2:16of quantum computers like IBM provide 2:19implementations of these Primitives 2:21which 2:22provide the most efficient software and 2:25Hardware techniques to leverage the 2:28Primitive to get the result the best 2:29result that you want 2:33if you're writing a higher level 2:34application 2:36where you have 2:38a classical Optimizer that works with 2:40these higher level results 2:44this greatly simplifies how you write 2:46the application because you don't have 2:48to worry about the intermediate 2:49computation you just have to deal with 2:52how you build this higher level 2:53application 2:55hopefully this shows you how you can use 2:57quantum Primitives to accelerate 2:59developing higher level applications 3:02there are more details and links for 3:04this in the description below please 3:06don't forget to like And subscribe and 3:07if you have any questions please leave a 3:09comment below thank you