量子信息與量子計算_量子計算為23美分。

量子信息與量子計算

On Aug 13, 2020, AWS announced the General Availability of Amazon Braket. Braket is their fully managed quantum computing service. It is available on an on-demand basis, much like SageMaker. That means the everyday developer and data scientist can tinker around and kick the tires.

2020年8月13日, AWS宣布了Amazon Braket的全面可用性。 Braket是其完全托管的量子計算服務。 它像SageMaker一樣按需提供。 這意味著每天的開發人員和數據科學家都可以修補和踢輪胎。

I wanted to take a look at the Braket Console and see how intuitive the experience was. Ease of use and friendly UI is crucial to me. I am a novice in the area of quantum computing, so I have much to learn. The introductory notebooks available make learning the basics easy. The very basics, I should say. The science behind the magic gets quite complicated, but it is interesting.

我想看一下Braket Console,看看這種體驗有多直觀。 易于使用和友好的用戶界面對我至關重要。 我是量子計算領域的新手,因此我要學習很多東西。 可用的入門筆記本使學習基礎變得容易。 我應該說非常基本的東西。 魔術背后的科學變得相當復雜,但這很有趣。

成本 (Cost)

My first order of business was to check out the cost. When I played around with some SageMaker projects, my AWS budget alarm kicked off early. I don’t want any $100 surprises, and I’m sure you don’t either. From what I gather, the cost is broken down differently in four areas. The notebooks are based on SageMaker pricing and billed as such. The larger your instance, the more it costs. The AWS Simulator runs at $4.50 an hour. The Quantum devices run at their own per ‘shot’ basis. And finally, you do send the output to S3, so there is a nominal storage fee. I was cautious to check my billing during this process. I knew I was running a tiny sample so that the costs would be low — less than $1.00. In the end, it cost me 23 cents.

我的第一筆生意是檢查費用。 當我處理一些SageMaker項目時,我的AWS預算警報很早就開始了。 我不希望有$ 100的驚喜,而且我相信您也不會。 根據我的收集,成本在四個方面進行了不同的細分。 這些筆記本基于SageMaker的定價,并以此計費。 您的實例越大,成本就越高。 AWS模擬器每小時收費4.50美元。 Quantum器件以“發射”為基礎獨立運行。 最后,您確實將輸出發送到S3,因此需要支付少量的存儲費。 在此過程中,我非常謹慎地檢查帳單。 我知道我正在運行一個很小的樣本,因此成本較低-不到1.00美元。 最后,它花了我23美分。

23 cents to run on this geek eye candy? Not bad.

這款極客型眼糖果的價格為23美分? 不錯。

準備 (Prep)

All of the information below assumes you have an AWS account set up, including billing. If you are setting up your account for the first time, there are some free tier options, though not for quantum devices.

以下所有信息均假設您已設置AWS賬戶(包括賬單)。 如果您是第一次設置帳戶,則有一些免費套餐選項 ,但不適用于量子設備。

Once you have an account, you’ll need to name an S3 bucket for your output. Other than that, you’re ready to go.

擁有帳戶后,您需要為輸出命名一個S3存儲桶。 除此之外,您已經準備好了。

運行示例 (Running the example)

Sometimes jumping into the code is the best way to learn how the hardware works. Hands-on tutorials can be hard to find at this early stage. I started with the AWS blog itself. It has a step-by-step guide with screenprints.

有時,跳入代碼是學習硬件工作方式的最佳方法。 在此早期階段很難找到動手教程。 我從AWS博客本身開始。 它具有有關屏幕截圖的分步指南。

https://awsfeed.com/whats-new/aws/amazon-braket-go-hands-on-with-quantum-computing

https://awsfeed.com/whats-new/aws/amazon-braket-go-hands-on-with-quantum-computing

It’s pretty straight forward in regards to running the sample notebooks.

就運行示例筆記本而言,這非常簡單。

I only had one small hiccup; I overlooked updating the S3 bucket variable. If you don’t update this value with the S3 bucket of your choosing, you will get this error:

我只有一個小小的打ic。 我忽略了更新S3存儲桶變量。 如果不使用您選擇的S3存儲桶更新此值,則會出現以下錯誤:

“ValidationException: An error occurred (ValidationException) when calling the CreateQuantumTask operation: Caller doesn’t have access to amazon-braket-<##########> or it doesn’t exist.”

If you want to run a quick test to be sure you have all of your configurations correct, below is a simple single-cell script. Based on the SuperDense example, it covers using a local simulator (that comes with the SDK), the AWS simulator, and the one quantum device (ionQ) that was available in my region at the time of my test.

如果要運行快速測試以確保所有配置正確,下面是一個簡單的單單元腳本。 基于SuperDense示例,它涵蓋了使用本地模擬器(SDK附帶),AWS模擬器以及測試時在我所在地區可用的一個量子設備( ionQ )。

# !pip show amazon-braket-sdk | grep Version# Import Braket librariesfrom braket.circuits import Circuit, Gate, Momentsfrom braket.circuits.instruction import Instructionfrom braket.aws import AwsDeviceimport matplotlib.pyplot as pltimport boto3import timefrom braket.devices import LocalSimulator# Please enter the S3 bucket you created during onboarding in the code below,# or create a new bucket named as ‘amazon-braket-<your account number>’ to run the below code without changes.aws_account_id = boto3.client(“sts”).get_caller_identity()[“Account”]my_bucket = f”amazon-braket-{aws_account_id}” # the name of the bucketmy_prefix = “simulation-output” # the name of the folder in the buckets3_folder = (my_bucket, my_prefix)# Run local simulatordevice = LocalSimulator()bell = Circuit().h(0).cnot(0, 1)print(bell)print(‘local simulator results: ‘ + str(device.run(bell, shots=100).result().measurement_counts))# Run AWS simulatordevice = AwsDevice(“arn:aws:braket:::device/quantum-simulator/amazon/sv1”)bell = Circuit().h(0).cnot(0, 1)print(‘aws simulator results: ‘)get_result(device, bell, s3_folder)

My output:

我的輸出:

Image for post
image by author
圖片作者

支架示例筆記本 (Braket Example Notebooks)

Advanced Circuits Algorithms

先進電路算法

  • Grover’s quantum algorithm

    格羅弗的量子算法
  • Quantum Amplitude Amplification (QAA)

    量子振幅放大(QAA)
  • Quantum Fourier Transform (QFT)

    量子傅立葉變換(QFT)
  • Quantum Phase Estimation (QPE)

    量子相位估計(QPE)

Hybrid Quantum Algorithms

混合量子算法

  • Quantum Approximate Optimization Algorithm (QAOA)

    量子近似優化算法(QAOA)
  • Transverse Ising Model with Variational Quantum Eigenvalue Solver (VQE)

    具有變分量子特征值求解器(VQE)的橫向Ising模型

Quantum Annealing

量子退火

  • Anatomy of Quantum Annealing with D-Wave

    D波的量子退火解剖
  • D-Wave Graph Partitioning — Quadratic Unconstrained Binary Optimization (QUBO)

    D波圖分區—二次無約束二進制優化(QUBO)
  • D-Wave Maximum Cut Problem (MaxCut)

    D波最大切割問題(MaxCut)
  • D-Wave Minimum Vertex Cover Problem

    D波最小頂點覆蓋問題

Simple Circuits Algorithms +++ start here

簡單電路算法+++從這里開始

  • Anatomy of quantum circuits

    量子電路的解剖
  • Backend Devices — GHZ state Preparation

    后端設備-GHZ狀態準備
  • Backend Devices — Bell state Preparation

    后端設備-響鈴狀態準備
  • Superdense Coding

    超密編碼

總體 (Overall)

I was pleased to see such detailed and educational notebooks right within the notebook instance. These are not entry-level concepts, but break down the workflow nicely. It is a good intro to the platform. Above, I have listed the different folders of examples provided. I’d recommend starting with the Simple Circuit Algorithms. The instructions walk you through the building of the circuit. The circuit visualization options aren’t as nice as some other platforms, but I imagine this will improve over time. AWS is known for getting the meat of the product to market then adding in the friendlier features in subsequent releases. The price is right, so give it a try.

我很高興在筆記本實例中看到如此詳細且具有教育意義的筆記本。 這些不是入門級的概念,但可以很好地分解工作流程。 這是該平臺的一個很好的介紹。 上面,我列出了提供的示例的不同文件夾。 我建議從簡單電路算法開始。 這些說明將引導您完成電路的構建。 電路可視化選項不如其他平臺好,但我認為隨著時間的推移,這種情況會有所改善。 AWS以將產品推向市場然后在后續版本中添加更友好的功能而聞名。 價格合適,請嘗試一下。

與往常一樣-記住停止并刪除您的筆記本實例。 (As always — remember to stop and delete your notebook instances.)

Image for post
image by author
圖片作者

翻譯自: https://towardsdatascience.com/quantum-computing-for-23-cents-917e1f664cea

量子信息與量子計算

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/390804.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/390804.shtml
英文地址,請注明出處:http://en.pswp.cn/news/390804.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

全面理解Java內存模型

Java內存模型即Java Memory Model&#xff0c;簡稱JMM。JMM定義了Java 虛擬機(JVM)在計算機內存(RAM)中的工作方式。JVM是整個計算機虛擬模型&#xff0c;所以JMM是隸屬于JVM的。 如果我們要想深入了解Java并發編程&#xff0c;就要先理解好Java內存模型。Java內存模型定義了多…

React Native指南

React本機 (React Native) React Native is a cross-platform framework for building mobile applications that can run outside of the browser?—?most commonly iOS and Android applicationsReact Native是一個跨平臺框架&#xff0c;用于構建可在瀏覽器外部運行的移動…

leetcode 1074. 元素和為目標值的子矩陣數量(map+前綴和)

給出矩陣 matrix 和目標值 target&#xff0c;返回元素總和等于目標值的非空子矩陣的數量。 子矩陣 x1, y1, x2, y2 是滿足 x1 < x < x2 且 y1 < y < y2 的所有單元 matrix[x][y] 的集合。 如果 (x1, y1, x2, y2) 和 (x1’, y1’, x2’, y2’) 兩個子矩陣中部分坐…

失物招領php_新奧爾良圣徒隊是否增加了失物招領?

失物招領phpOver the past couple of years, the New Orleans Saints’ offense has been criticized for its lack of wide receiver options. Luckily for Saints’ fans like me, this area has been addressed by the signing of Emmanuel Sanders back in March — or has…

教你分分鐘使用Retrofit+Rxjava實現網絡請求

擼代碼之前&#xff0c;先簡單了解一下為什么Retrofit這么受大家青睞吧。 Retrofit是Square公司出品的基于OkHttp封裝的一套RESTful&#xff08;目前流行的一套api設計的風格&#xff09;網絡請求框架。它內部使用了大量的設計模式&#xff0c;以達到高度解耦的目的&#xff1b…

線程與進程區別

一.定義&#xff1a; 進程&#xff08;process&#xff09;是一塊包含了某些資源的內存區域。操作系統利用進程把它的工作劃分為一些功能單元。 進程中所包含的一個或多個執行單元稱為線程&#xff08;thread&#xff09;。進程還擁有一個私有的虛擬地址空間&#xff0c;該空間…

基本SQL命令-您應該知道的數據庫查詢和語句列表

SQL stands for Structured Query Language. SQL commands are the instructions used to communicate with a database to perform tasks, functions, and queries with data.SQL代表結構化查詢語言。 SQL命令是用于與數據庫通信以執行任務&#xff0c;功能和數據查詢的指令。…

leetcode 5756. 兩個數組最小的異或值之和(狀態壓縮dp)

題目 給你兩個整數數組 nums1 和 nums2 &#xff0c;它們長度都為 n 。 兩個數組的 異或值之和 為 (nums1[0] XOR nums2[0]) (nums1[1] XOR nums2[1]) … (nums1[n - 1] XOR nums2[n - 1]) &#xff08;下標從 0 開始&#xff09;。 比方說&#xff0c;[1,2,3] 和 [3,2,1…

客戶細分模型_Avarto金融解決方案的客戶細分和監督學習模型

客戶細分模型Lets assume that you are a CEO of a company which have some X amount of customers in a city with 1000 *X population. Analyzing the trends/features of your customer and segmenting the population of the city to land new potential customers would …

用 Go 編寫一個簡單的 WebSocket 推送服務

用 Go 編寫一個簡單的 WebSocket 推送服務 本文中代碼可以在 github.com/alfred-zhon… 獲取。 背景 最近拿到需求要在網頁上展示報警信息。以往報警信息都是通過短信&#xff0c;微信和 App 推送給用戶的&#xff0c;現在要讓登錄用戶在網頁端也能實時接收到報警推送。 依稀記…

leetcode 231. 2 的冪

給你一個整數 n&#xff0c;請你判斷該整數是否是 2 的冪次方。如果是&#xff0c;返回 true &#xff1b;否則&#xff0c;返回 false 。 如果存在一個整數 x 使得 n 2x &#xff0c;則認為 n 是 2 的冪次方。 示例 1&#xff1a; 輸入&#xff1a;n 1 輸出&#xff1a;tr…

Java概述、環境變量、注釋、關鍵字、標識符、常量

Java語言的特點 有很多小特點&#xff0c;重點有兩個開源&#xff0c;跨平臺 Java語言是跨平臺的 Java語言的平臺 JavaSE JavaME--Android JavaEE DK,JRE,JVM的作用及關系(掌握) (1)作用 JVM&#xff1a;保證Java語言跨平臺 &#xff0…

寫游戲軟件要學什么_為什么要寫關于您所知道的(或所學到的)的內容

寫游戲軟件要學什么Im either comfortably retired or unemployed, I havent decided which. What I do know is that I am not yet ready for decades of hard-won knowledge to lie fallow. Still driven to learn new technologies and to develop new projects, I see the …

leetcode 342. 4的冪

給定一個整數&#xff0c;寫一個函數來判斷它是否是 4 的冪次方。如果是&#xff0c;返回 true &#xff1b;否則&#xff0c;返回 false 。 整數 n 是 4 的冪次方需滿足&#xff1a;存在整數 x 使得 n 4x 示例 1&#xff1a; 輸入&#xff1a;n 16 輸出&#xff1a;true …

梯度反傳_反事實政策梯度解釋

梯度反傳Among many of its challenges, multi-agent reinforcement learning has one obstacle that is overlooked: “credit assignment.” To explain this concept, let’s first take a look at an example…在許多挑戰中&#xff0c;多主體強化學習有一個被忽略的障礙&a…

三款功能強大代碼比較工具Beyond compare、DiffMerge、WinMerge

我們經常會遇到需要比較同一文件的不同版本&#xff0c;特別是代碼文件。如果人工去對比查看&#xff0c;勢必費時實力還會出現紕漏和錯誤&#xff0c;因此我們需要借助一些代碼比較的工具來自動完成這些工作。這里介紹3款比較流行且功能強大的工具。 1. Beyond compare這是一款…

shell腳本_Shell腳本

shell腳本In the command line, a shell script is an executable file that contains a set of instructions that the shell will execute. Its main purpose is to reduce a set of instructions (or commands) in just one file. Also it can handle some logic because it…

大數據與Hadoop

大數據的定義 大數據是指無法在一定時間內用常規軟件工具對其內容進行抓取、管理和處理的數據集合。 大數據的概念–4VXV 1,數據量大&#xff08;Volume&#xff09;2,類型繁多&#xff08;Variety &#xff09;3,速度快時效高&#xff08;Velocity&#xff09;4,價值密度低…

Arm匯編指令學習

ARM指令格式 ARM指令格式解析 opcode: 指令助記符,例如,MOV ,ADD,SUB等等 cond&#xff1a;指令條件碼表.下面附一張圖 {S}:是否影響CPSR的值. {.W .N}:指令寬度說明符,無論是ARM代碼還是Thumb&#xff08;armv6t2或更高版本&#xff09;代碼都可以在其中使用.W寬度說明符&…

facebook.com_如何降低電子商務的Facebook CPM

facebook.comWith the 2020 election looming, Facebook advertisers and e-commerce stores are going to continually see their ad costs go up as the date gets closer (if they haven’t already).隨著2020年選舉的臨近&#xff0c;隨著日期越來越近&#xff0c;Facebook…