Book Image

Quantum Computing Experimentation with Amazon Braket

By : Alex Khan
5 (1)
Book Image

Quantum Computing Experimentation with Amazon Braket

5 (1)
By: Alex Khan

Overview of this book

Amazon Braket is a cloud-based pay-per-use platform for executing quantum algorithms on cutting-edge quantum computers and simulators. It is ideal for developing robust apps with the latest quantum devices. With this book, you'll take a hands-on approach to learning how to take real-world problems and run them on quantum devices. You'll begin with an introduction to the Amazon Braket platform and learn about the devices currently available on the platform, their benefits, and their purpose. Then, you'll review key quantum concepts and algorithms critical to converting real-world problems into a quantum circuit or binary quadratic model based on the appropriate device and its capability. The book also covers various optimization use cases, along with an explanation of the code. Finally, you'll work with a framework using code examples that will help to solve your use cases with quantum and quantum-inspired technologies. Later chapters cover custom-built functions and include almost 200 figures and diagrams to visualize key concepts. You’ll be able to scan the capabilities provided by Amazon Braket and explore the functions to adapt them for specific use cases. By the end of this book, you’ll have the tools to integrate your current business apps and AWS data with Amazon Braket to solve constrained and multi-objective optimization problems.
Table of Contents (19 chapters)
1
Introduction
Free Chapter
2
Section 1: Getting Started with Amazon Braket
7
Section 2: Building Blocks for Real-World Use Cases
13
Section 3: Real-World Use Cases

Conventions used

There are a number of text conventions used throughout this book.

Code in text: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “Replace amazon-braket-Your-Bucket-Name with the bucket instance name and Your-Folder-Name with the folder name you created in the S3 bucket instance. Keep the quotes.”

A block of code is set as follows:

device_name_list=[] 
for device in device_list: 
device_name_list.append(device.name) 
print('Valid device names: ',device_name_list) 

Output generated by the code is set as follows:

Output

Valid device names: ['Advantage_system4.1', 'Advantage_ system6.1', 'Aspen-M-1', 'DW_2000Q_6', 'IonQ Device', 'SV1', 'TN1', 'dm1']]

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

[default]
exten => s,1,Dial(Zap/1|30)
exten => s,2,Voicemail(u100)
exten => s,102,Voicemail(b100)
exten => i,1,Voicemail(s0)

Any command-line input or output is written as follows:

pip install jupyterlab
pip install notebook

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: “Now select the Access keys section and then click on Create new Access Key to create a unique security key.”

Italics: Indicates references to figures, tables, or chapters in the book along with any term that would be in quotes. Here is an example: “While the service is running, it incurs a small charge, which is covered in Chapter 3, User Setup, Tasks, and Understanding Device Costs.”

Tips or important notes

Appear like this.