Book description
Ready to build quantum computing applications using Q# and the Microsoft Quantum Development Kit? This is the book for you. Q# is a domain-specific language for expressing quantum algorithms that combines familiar "classical" language constructs with quantum-specific ones. Ideal for any developer familiar with (or willing to learn) the basics of quantum computing and looking to get started with quantum programming, this pocket guide quickly helps you find syntax and usage information for unfamiliar aspects of Q#.
You'll explore the quantum software development lifecycle from implementing the program to running it on quantum simulators to testing and debugging it. You'll learn to use the tools provided by Microsoft's Quantum Development Kit for each step of the process.
You'll explore:
- Q# language details, including data types, statements, and operators
- Guidelines for organizing Q# code and invoking it from different environments
- Information on simulators and tools in the Microsoft Quantum Development Kit
- Advice on testing and debugging tools and techniques for quantum programs
Publisher resources
Table of contents
- Foreword
- Preface
- I. Q# Programming Language
- 1. Program Structure
- 2. Data Types
- 3. Expressions
-
4. Statements
- Example: Calculate Euler’s Totient Function
- Working with Variables
- Conditional Execution: if Statements
- Loops
- Call an Operation or a Function: Call Statements
- Stop Execution: return and fail Statements
- Example: Prepare a Quantum State
- Allocate Qubits: use and borrow Statements
- Quantum Conditional Loops: repeat-until Loops
- Conjugation: within-apply Statements
- Conclusion
- 5. Operations and Functions
- II. Using the Microsoft Quantum Development Kit
- 6. Running Q# Programs
-
7. Microsoft Quantum
Development Kit Libraries
- Getting and Using the Libraries
-
Standard Libraries
- Microsoft.Quantum.Core: Built-In Functions and Attributes
- Microsoft.Quantum.Convert: Data Type Conversions
- Microsoft.Quantum.Logical: Logical and Comparison Functions
- Microsoft.Quantum.Bitwise: Bitwise Functions
- Microsoft.Quantum.Math: Classical Math and Arithmetic
- Microsoft.Quantum.Random: Random Numbers and Probability Distributions
- Microsoft.Quantum.Arrays: Generic Array Manipulation
- Microsoft.Quantum.Intrinsic: Basic Quantum Gates and Measurements
- Microsoft.Quantum.Diagnostics: Testing and Troubleshooting Quantum Programs
- Microsoft.Quantum.Measurement: Additional Measurement Routines
- Microsoft.Quantum.Preparation: Quantum State Preparation
- Microsoft.Quantum.Arithmetic: Quantum Arithmetic
- Microsoft.Quantum.Canon: Catchall
- Advanced Libraries
- Conclusion
- 8. Testing and Debugging
- Index
- About the Author
Product information
- Title: Q# Pocket Guide
- Author(s):
- Release date: June 2022
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781098108861
You might also like
audiobook
Transformed
Help transform your business and innovate like the world's top tech companies! Transformed: Moving to the …
audiobook
What's New in AI: Open Source Large Language Models with Eric Xing (Audio)
Join host George Anadiotis and guest Eric Xing, for a discussion about the current and expanding …
book
Quantum Machine Learning: An Applied Approach: The Theory and Application of Quantum Machine Learning in Science and Industry
Know how to adapt quantum computing and machine learning algorithms. This book takes you on a …
book
Qiskit Pocket Guide
The quantum computing market is predicted to grow by nearly $1.3 billion over the next five …