Skip to Content
Building Quantum Software with Python
book

Building Quantum Software with Python

by Charlee Stefanski, Constantin Gonciulea
April 2025
Intermediate to advanced
376 pages
9h 41m
English
Manning Publications
Content preview from Building Quantum Software with Python

5 Selecting outcomes with quantum oracles

This chapter covers

  • Specifying “good” outcomes of quantum computations with quantum oracles
  • Implementing phase and bit quantum oracles
  • Converting between phase and bit quantum oracles

In chapter 1, we discussed three main patterns of quantum computations:

  • Sampling from probability distributions
  • Searching for specific outcomes
  • Estimating the probability of specific outcomes

We explored several examples of the first pattern: sampling from probability distributions encoded into quantum states. In this chapter, we will learn how to identify specific outcomes of a quantum computation. This is an essential component for implementing solutions to problems that involve searching for certain ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Quantum Computing in Action

Quantum Computing in Action

Johan Vos
Deep Learning with PyTorch

Deep Learning with PyTorch

Eli Stevens, Thomas Viehmann, Luca Pietro Giovanni Antiga

Publisher Resources

ISBN: 9781633437630Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link