News for hackers. Stuff that matters.
Re:Hello Many Worlds in Seven Quantum Languages (2021) by fouc on Wednesday February 16, 2022 @12:53PM (#30363216)
> But today, as quantum computers with dozens of qubits are being built, and systems with hundreds or even thousands of qubits are on the horizon, the complexity of programming a quantum computer requires a more structured approach. This has led to the birth of a large number of quantum programming frameworks and languages, ranging from fully-fledged programming languages like Microsoft’s Q#, to Python frameworks like IBM’s Qiskit, to basic assembly languages like QASM.

I'm guessing this is QASM https://www.quantum-inspire.com/kbase/cqasm/

Interesting graphics there. Seems like programming for quantum computers is an act of building "circuits"

Re:Hello Many Worlds in Seven Quantum Languages (2021) by wzeng on Wednesday February 16, 2022 @01:52PM (#30364057)
The cQASM that you link to is one of the flavors of QASM. Another commonly used one is openqasm whose 2.0 and 3.0 specs are here: https://github.com/Qiskit/openqasm

Along with QIR like as is listed in the comment, these are two open assembly specs with collaborative governance. Another is Quil: https://github.com/quil-lang/quil

While quantum computing has a history of using circuit diagrams (which are still very useful) to represent programs. These languages have representations under the hood that look a lot more like assembly. For example: https://github.com/Qiskit/openqasm/blob/master/examples/adde...

Re:Hello Many Worlds in Seven Quantum Languages (2021) by nilslice on Wednesday February 16, 2022 @01:26PM (#30363682)
Yes, at a low (assembly-like) level, "circuits" define how a series of gate operations are applied to qubits. Various abstractions make this easier, including the languages and frameworks mentioned in the linked article.

Interesting to note is the recent formation of the Linux Foundation's QIR Alliance[0], which has specified a quantum intermediate representation within LLVM to bridge the quantum software/hardware ecosystem.

[0]: https://www.linuxfoundation.org/press-release/new-quantum-in...

Re:Hello Many Worlds in Seven Quantum Languages (2021) by rackjack on Wednesday February 16, 2022 @02:07PM (#30364279)
First we build circuits, then we build languages, then we build everything else
Re:Hello Many Worlds in Seven Quantum Languages (2021) by thatcherc on Wednesday February 16, 2022 @01:50PM (#30364023)
Interesting - 6 of the 7 languages discussed are Python libraries. Must be going for the more DSL type of language. Of the ones mentioned, looks like only Q# and QASM aren't Python-based.
Re:Hello Many Worlds in Seven Quantum Languages (2021) by da-bacon on Wednesday February 16, 2022 @03:34PM (#30365318)
Lot's of reasons for this. Mostly having to do with the minimal size and sophistication of current quantum programs, and the background that many of these efforts arose from Physics teams where python is heavily used. One of the most popular non-Python based version of these sorts of frameworks is https://yaoquantum.org/ which is in Julia.
Re:Hello Many Worlds in Seven Quantum Languages (2021) by gowld on Wednesday February 16, 2022 @04:03PM (#30365649)
> minimal size and sophistication of current quantum programs,

For that, I'd expect a simple standalone like Verilog or ASM.

Re:Hello Many Worlds in Seven Quantum Languages (2021) by da-bacon on Wednesday February 16, 2022 @08:59PM (#30368671)
Well you also want to run the program and process the data, so for that later step it’s nice to stay in one language that has support for the data analysis.
Re:Hello Many Worlds in Seven Quantum Languages (2021) by Smaug123 on Wednesday February 16, 2022 @04:15PM (#30365784)
Q# originated as a DSL in F#, which has extremely strong DSL-creating capabilities in its [computation expressions](https://docs.microsoft.com/en-us/dotnet/fsharp/language-refe...). See https://devblogs.microsoft.com/qsharp/why-do-we-need-q/ for its history.
Re:Hello Many Worlds in Seven Quantum Languages (2021) by 2fast4you on Wednesday February 16, 2022 @01:44PM (#30363946)
Is there a good resource for learning about programming for quantum computers? I'm looking at this and realizing just how much I don't know.
Re:Hello Many Worlds in Seven Quantum Languages (2021) by rpmuller on Wednesday February 16, 2022 @02:08PM (#30364302)
The "Mike and Ike" book is the standard introduction to the field: https://en.wikipedia.org/wiki/Quantum_Computation_and_Quantu...
Re:Hello Many Worlds in Seven Quantum Languages (2021) by sundarurfriend on Thursday February 17, 2022 @01:38AM (#30370179)
Not about programming for quantum computers in the sense of the article, but for understanding quantum computing itself and learning to create combinations of gates to solve problems, I recommend "Quantum computing for the very curious": https://quantum.country/qcvc
Re:Hello Many Worlds in Seven Quantum Languages (2021) by quaintquant on Wednesday February 16, 2022 @02:06PM (#30364259)
I think this talk is an excellent 'foot in the door' intro.

Should provide a solid foundation, and plenty of insider jargon to follow up on!

https://www.youtube.com/watch?v=F_Riqjdh2oM

Re:Hello Many Worlds in Seven Quantum Languages (2021) by da-bacon on Wednesday February 16, 2022 @03:38PM (#30365364)
IBM has a nice online resource for learning quantum computing using their framework (Qiskit) https://qiskit.org/textbook/preface.html
Re:Hello Many Worlds in Seven Quantum Languages (2021) by da-bacon on Wednesday February 16, 2022 @03:30PM (#30365280)
Oh this looks familiar! I left off my favorite https://github.com/dabacon/qsel (have never used this to run against a real device).
Re:Hello Many Worlds in Seven Quantum Languages (2021) by kingcharles on Wednesday February 16, 2022 @03:33PM (#30365307)
The fact that all the major cloud providers have their own PAYG Quantum Computing setups, and I can sit here in my underwear and write quantum code, is quite frankly mind-boggling.

BRB, going to put my cat in a box...

Re:Hello Many Worlds in Seven Quantum Languages (2021) by rpmuller on Wednesday February 16, 2022 @02:06PM (#30364266)
Re:Hello Many Worlds in Seven Quantum Languages (2021) by da-bacon on Wednesday February 16, 2022 @03:32PM (#30365298)
Write a Jaqal IonQ API interface, and I'm sure they will add it (I no longer work for said company)
Re:Hello Many Worlds in Seven Quantum Languages (2021) by sundarurfriend on Thursday February 17, 2022 @01:41AM (#30370186)
I guess the Yao Julia package you mentioned in another comment also doesn't have a IonQ API yet, and that's the reason it isn't part of the article?
Re:Hello Many Worlds in Seven Quantum Languages (2021) by da-bacon on Thursday February 17, 2022 @09:49AM (#30373594)
Yep! This was PR for IonQ SPACing so totally focused on running via their API or APIs they integrate with (Azure, AWS)