Quantum Computing Programming Language
William Walker writes "The Economist has an article in its new issue describing attempts to write a programming language for quantum computers, if and when they appear. It does a good job of putting the challenges of qubits versus regular bits into layman's terms. ... The original paper is here."
Port Slashcode to this, and we'll have FP comments *before* the articles appear!
"Mod, mod, mod...and another troll bites the dust."
Someone should create a quantum programming language named "Q" in the fine tradition of "C".
c??
-- Thou hast strayed far from the path of the Avatar.
attempts to write a programming language for quantum computers, if and when they appear
Just don't observe them and they will appear!
It does a good job of putting the challenges of qubits versus regular bits into layman's terms.
:-)
Yea right. A sample run past my mom...
(Mom reads the article...)
Mom: Will this make FreeCell any easier?
Me: Well, a quantum computer could actually solve all the possible shuffles of FreeCell in one pass.
Mom: That wouldn't be any fun... Would the Internet be faster?
Me: Not until we get rid of your dialup and get you a cable modem.
and so on
www.christopherlewis.com
. . . before this makes it into the Gnu Compiler Collection?
Al Qaeda has ninjas!
This article is about quantum programming, not Windows programming.
my $cat = new Cat('Felix');
my $occupants = [$cat];
my $room = new Room($occupants);
$room->kill_occupant($cat);
# is he dead?
$room->status_occupant($cat);
# doh!
- James
even worse - half the time, when you order your quantum computer and you open the box, it will be DOA.
If I didn't know the difference between quantum superposition and tachyons, I'd probably have found that funny too.
If we build something with qubits, should we call it an ark?
Personally, I'm just waiting for someone to complain to me that they found a bug in my quantum code:
"It wasn't like that when I originally coded it! You must have looked at it or something! So it's really your bug now, isn't it?
GMD
watch this
if(1 && 0)
{
DoBothBranches();
}
else
{
DoBothBranchesAnyways();
}
else
{
WhatTheHellIsGoingOn();
goto PrintAnswerToQuestionYouWereThinkingOf();
}
GOTO will be all the rage. Maybe they'll call it LEAP instead!
... when programs have Shroedinger's bugs.
Imagine debugging those. Are they squashed? Or are they squashed/unsquashed at the same time?
(Apologies to real physicists. I'm just being silly. In case you can't tell)
Don't worry, soon the other universes will pass the Quantum Millenium Copyright Act which makes all IP computed in their universes their property.
Hell I don't know about you, but I don't want those freeloading universes using up MY computer cycles without paying me!
I can either tell you what milestone we're on, or how fast the project is progressing, but not both.
Error: Missing ';' near identifier 'qubit0'
(Could be you left out a semicolon, could be background cosmic radiation messing with your qubits)
hehe... Microsoft'll love this...
-------
"In times of universal deceit, telling the truth becomes a revolutionary act."
-- George Orwell
No you've gotten it quite wrong:
*All* the time, when you order your quantum computer and you open the box, it will be *both* DOA *and* fully functional. You simply won't know until you open the box.
It will, however, *always* contain a dead cat in the box.
With apologies to Bill Cosby
God: I want you to build an ark.
Noah: Right! What's an ark?
God: Get some wood. Build it 300 cubits by 80 cubits by 40 cubits.
Noah:Right! What's a cubit?
"My fingers Emit sparks of fire in Expectation of my future labours." William Blake
An infinite number of ways to get from here to there?
Phase 1: Steal Underwear Phase 1: ??? Phase 1: Profit!
"Seriously?! Now I have to change my PGP key..."
(quote)
use Quantum::Superpositions;
my $foo = any(1, 2, 3);
if($foo == 1 && $foo == 2 && $foo == 3) {
print "hooray";
}
(end quote)
Can it be encapsulated behind API's like?:
if(spookyShit($foo,[1,2,3])) {
print "hooray";
}
Table-ized A.I.