. 24/7 Space News .
A new language for quantum computing
by Rachel Gordon for MIT News
Boston MA (SPX) Jan 25, 2022

stock image only

Time crystals. Microwaves. Diamonds. What do these three disparate things have in common? Quantum computing. Unlike traditional computers that use bits, quantum computers use qubits to encode information as zeros or ones, or both at the same time. Coupled with a cocktail of forces from quantum physics, these refrigerator-sized machines can process a whole lot of information - but they're far from flawless. Just like our regular computers, we need to have the right programming languages to properly compute on quantum computers.

Programming quantum computers requires awareness of something called "entanglement," a computational multiplier for qubits of sorts, which translates to a lot of power. When two qubits are entangled, actions on one qubit can change the value of the other, even when they are physically separated, giving rise to Einstein's characterization of "spooky action at a distance." But that potency is equal parts a source of weakness. When programming, discarding one qubit without being mindful of its entanglement with another qubit can destroy the data stored in the other, jeopardizing the correctness of the program.

Scientists from MIT's Computer Science and Artificial Intelligence (CSAIL) aimed to do some unraveling by creating their own programming language for quantum computing called Twist. Twist can describe and verify which pieces of data are entangled in a quantum program, through a language a classical programmer can understand. The language uses a concept called purity, which enforces the absence of entanglement and results in more intuitive programs, with ideally fewer bugs. For example, a programmer can use Twist to say that the temporary data generated as garbage by a program is not entangled with the program's answer, making it safe to throw away.

While the nascent field can feel a little flashy and futuristic, with images of mammoth wiry gold machines coming to mind, quantum computers have potential for computational breakthroughs in classically unsolvable tasks, like cryptographic and communication protocols, search, and computational physics and chemistry. One of the key challenges in computational sciences is dealing with the complexity of the problem and the amount of computation needed. Whereas a classical digital computer would need a very large exponential number of bits to be able to process such a simulation, a quantum computer could do it, potentially, using a very small number of qubits - if the right programs are there.

"Our language Twist allows a developer to write safer quantum programs by explicitly stating when a qubit must not be entangled with another," says Charles Yuan, an MIT PhD student in electrical engineering and computer science and the lead author on a new paper about Twist. "Because understanding quantum programs requires understanding entanglement, we hope that Twist paves the way to languages that make the unique challenges of quantum computing more accessible to programmers."

Yuan wrote the paper alongside Chris McNally, a PhD student in electrical engineering and computer science who is affiliated with the MIT Research Laboratory of Electronics, as well as MIT Assistant Professor Michael Carbin. They presented the research at last week's 2022 Symposium on Principles of Programming conference in Philadelphia.

Untangling quantum entanglement
Imagine a wooden box that has a thousand cables protruding out from one side. You can pull any cable all the way out of the box, or push it all the way in.

After you do this for a while, the cables form a pattern of bits - zeros and ones - depending on whether they're in or out. This box represents the memory of a classical computer. A program for this computer is a sequence of instructions for when and how to pull on the cables.

Now imagine a second, identical-looking box. This time, you tug on a cable, and see that as it emerges, a couple of other cables are pulled back inside. Clearly, inside the box, these cables are somehow entangled with each other.

The second box is an analogy for a quantum computer, and understanding the meaning of a quantum program requires understanding the entanglement present in its data. But detecting entanglement is not straightforward. You can't see into the wooden box, so the best you can do is try pulling on cables and carefully reason about which are entangled. In the same way, quantum programmers today have to reason about entanglement by hand. This is where the design of Twist helps massage some of those interlaced pieces.

The scientists designed Twist to be expressive enough to write out programs for well-known quantum algorithms and identify bugs in their implementations. To evaluate Twist's design, they modified the programs to introduce some kind of bug that would be relatively subtle for a human programmer to detect, and showed that Twist could automatically identify the bugs and reject the programs.

They also measured how well the programs performed in practice in terms of runtime, which had less than 4 percent overhead over existing quantum programming techniques.

For those wary of quantum's "seedy" reputation in its potential to break encryption systems, Yuan says it's still not very well known to what extent quantum computers will actually be able to reach their performance promises in practice. "There's a lot of research that's going on in post-quantum cryptography, which exists because even quantum computing is not all-powerful. So far, there's a very specific set of applications in which people have developed algorithms and techniques where a quantum computer can outperform classical computers."

An important next step is using Twist to create higher-level quantum programming languages. Most quantum programming languages today still resemble assembly language, stringing together low-level operations, without mindfulness towards things like data types and functions, and what's typical in classical software engineering.

"Quantum computers are error-prone and difficult to program. By introducing and reasoning about the 'purity' of program code, Twist takes a big step towards making quantum programming easier by guaranteeing that the quantum bits in a pure piece of code cannot be altered by bits not in that code," says Fred Chong, the Seymour Goodman Professor of Computer Science at the University of Chicago and chief scientist at Super.tech.

The work was supported, in part, by the MIT-IBM Watson AI Lab, the National Science Foundation, and the Office of Naval Research.

Research Report: "Twist: Sound Reasoning for Purity and Entanglement in Quantum Programs"

Related Links
Computer Science and Artificial Intelligence Laboratory (CSAIL)
Space Technology News - Applications and Research

Thanks for being there;
We need your help. The SpaceDaily news network continues to grow but revenues have never been harder to maintain.

With the rise of Ad Blockers, and Facebook - our traditional revenue sources via quality network advertising continues to decline. And unlike so many other news sites, we don't have a paywall - with those annoying usernames and passwords.

Our news coverage takes time and effort to publish 365 days a year.

If you find our news sites informative and useful then please consider becoming a regular supporter or for now make a one off contribution.
SpaceDaily Monthly Supporter
$5+ Billed Monthly

paypal only
SpaceDaily Contributor
$5 Billed Once

credit card or paypal

Lion will roam above the planet - KP Labs to release their "king of orbit"
Gliwice, Poland (SPX) Jan 21, 2022
KP Labs is beginning to work on an expansion of its product portfolio with an on-board computer for small satellites that will streamline and speed up on-orbit data processing, as well as ensure greater hardware reliability in modern satellite missions. This is the third Data Processing Unit (DPU) designed by KP Labs, and the first one suited for use in larger missions. After the introduction of devices tailored for nanosatellite projects, Lion DPU paves a way for the company to enter a completely new s ... read more

Comment using your Disqus, Facebook, Google or Twitter login.

Share this article via these popular social media networks
del.icio.usdel.icio.us DiggDigg RedditReddit GoogleGoogle

Beaming with science

US undermines safety of Russian cosmonaut's at ISS by denying visa, Roscosmos says

Five Space Station Research Results Contributing to Deep Space Exploration

STEM student experiments win Flight Opportunity in NASA Tech Contest

New tech spurs spaceplane vision: halfway around world in 40 minutes

University spy in Germany 'passed Ariane rocket details to Russia'

SpaceX ISS freighter splashes down off Florida

Ariane 6 upper stage readies for tests at Europe's Spaceport

SwRI scientist helps confirm liquid water beneath Mars south polar cap

New control technique uses solar panels to reach desired Mars orbit

Sols 3367-3368: The Prow to take another bow

How to Retain a Core

China's rocket technology hits the ski slopes

China conducts its first rocket launch of 2022

Shouzhou XIII crew finishes cargo spacecraft, space station docking test

China to complete building of space station in 2022

OneWeb and Hughes to bring orbital broadband service to India

EU launches 'game changer' space startup fund

Blue Origin set to acquire Honeybee Robotics

Summit to ignite Europe's bold space ambitions

Physicist solves century old problem of radiation reaction

ESA has the tension on the pull

A new language for quantum computing

Future trillion dollar 'space economy' threatened by debris, WVU researcher says

A planetary dynamical crime scene at 14 Herculis

Scientists are a step closer to finding planets like Earth

TESS Science Office at MIT hits milestone of 5,000 exoplanet candidates

Ironing out the interiors of exoplanets

Oxygen ions in Jupiter's innermost radiation belts

Ocean Physics Explain Cyclones on Jupiter

Looking Back, Looking Forward To New Horizons

Testing radar to peer into Jupiter's moons

The content herein, unless otherwise known to be public domain, are Copyright 1995-2024 - Space Media Network. All websites are published in Australia and are solely subject to Australian law and governed by Fair Use principals for news reporting and research purposes. AFP, UPI and IANS news wire stories are copyright Agence France-Presse, United Press International and Indo-Asia News Service. ESA news reports are copyright European Space Agency. All NASA sourced material is public domain. Additional copyrights may apply in whole or part to other bona fide parties. All articles labeled "by Staff Writers" include reports supplied to Space Media Network by industry news wires, PR agencies, corporate press officers and the like. Such articles are individually curated and edited by Space Media Network staff on the basis of the report's information value to our industry and professional readership. Advertising does not imply endorsement, agreement or approval of any opinions, statements or information provided by Space Media Network on any Web page published or hosted by Space Media Network. General Data Protection Regulation (GDPR) Statement Our advertisers use various cookies and the like to deliver the best ad banner available at one time. All network advertising suppliers have GDPR policies (Legitimate Interest) that conform with EU regulations for data collection. By using our websites you consent to cookie based advertising. If you do not agree with this then you must stop using the websites from May 25, 2018. Privacy Statement. Additional information can be found here at About Us.