Loading...
「ツール」は右上に移動しました。
1602いいね 45134回再生

Code a Bell Pair on a Quantum Computer with OpenQASM #Shorts

Let's code a Bell pair for a quantum computer.

Subscribe for more quantum videos!

BTC: 3LNFcQTcyQu7DD1EqmnTa16JvN7S3druWC
ETH: 0x6559Db7EBf9BCEb776501323215b5632EA95b2a8

A Bell pair is a maximally entangled pair of qubits, a fundamental building block of quantum computing!

It takes just a few lines of code in OpenQASM (quantum assembly language)
We set up a quantum and classical register with qreg and creg

h q[0]; a hadamard gate to put the qubit in a superpostion

cx q[0],q[1]; a cnot gate to entangle the qubits

and then we measure it!

Try it on the IBM Quantum Experience or Microsoft's Q#

Join this channel to get access to perks like behind the scenes and support my channel!
youtube.com/channel/UCzaYH6WeohiHKj3Ih_GdZdQ/join
or the same perks over on Patreon:
www.patreon.com/amarchenkova


#Shorts #quantumcomputing #quantumcoding

コメント