A new language for quantum computing | MIT News | Massachusetts Institute of Technology – MIT News
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 theyre 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 Einsteins 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 MITs 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 programs 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 theyre 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 cant 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 quantums seedy reputation in its potential to break encryption systems, Yuan says its 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 whats 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.
Read this article:
A new language for quantum computing | MIT News | Massachusetts Institute of Technology - MIT News
- Prediction: These 2 Quantum Computing Stocks Will Be the Biggest AI Winners of 2025 - Yahoo Finance - February 20th, 2025 [February 20th, 2025]
- 4 AI Stocks to Watch in the Quantum Computing Revolution - The Motley Fool - February 20th, 2025 [February 20th, 2025]
- Quantum Watch: 3 Quantum Computing Startups Set to Disrupt the Industry - TipRanks - February 20th, 2025 [February 20th, 2025]
- D-Wave, IonQ and Quantum Computing Stocks Pop: What's Driving the Momentum? - Benzinga - February 20th, 2025 [February 20th, 2025]
- Microsoft quantum breakthrough promises to usher in the next era of computing in 'years, not decades' - GeekWire - February 20th, 2025 [February 20th, 2025]
- Microsoft claims practical quantum computing could be ready in 'years rather than decades' with new computer chip - Fortune - February 20th, 2025 [February 20th, 2025]
- Microsoft unveils chip it says could bring quantum computing within years - The Guardian - February 20th, 2025 [February 20th, 2025]
- Microsoft created a new type of matter for its quantum computing chip - Quartz - February 20th, 2025 [February 20th, 2025]
- Kipu Quantum and IBM Introduce New Optimization Function in Qiskit Functions Catalog - Quantum Computing Report - February 20th, 2025 [February 20th, 2025]
- Microsoft reveals its first quantum computing chip, the Majorana 1 - MSN - February 20th, 2025 [February 20th, 2025]
- How Microsoft is rewriting the rules of reality with quantum computing - Interesting Engineering - February 20th, 2025 [February 20th, 2025]
- Microsoft Makes Quantum Computing Breakthrough With New Chip - The New Stack - February 20th, 2025 [February 20th, 2025]
- Should the Government Fund a Manhattan Project for Quantum Computing? - Built In - February 20th, 2025 [February 20th, 2025]
- This Quantum Computing Stock Just Announced a Key New Sales Strategy and Its First Customer - Barchart - February 20th, 2025 [February 20th, 2025]
- HPE launches slew of Xeon-based Proliant servers which claim to be impervious to quantum computing threats - TechRadar - February 20th, 2025 [February 20th, 2025]
- Quantum Computing (NASDAQ:QUBT) Trading Down 4% - Here's What Happened - MarketBeat - February 20th, 2025 [February 20th, 2025]
- 4 AI Stocks to Watch in the Quantum Computing Revolution - MSN - February 20th, 2025 [February 20th, 2025]
- The Next Big Thing in Quantum Computing: 3 Startups to Watch - PUNE.NEWS - February 20th, 2025 [February 20th, 2025]
- Quantum Computing Is Closer Than Ever. Everybodys Too Busy to Pay Attention. - The Wall Street Journal - February 14th, 2025 [February 14th, 2025]
- Practical Quantum Computing Five to Ten Years Away: Google CEO - The Quantum Insider - February 14th, 2025 [February 14th, 2025]
- Oxford scientists say they have achieved teleportation - The Independent - February 14th, 2025 [February 14th, 2025]
- D-Wave Quantum Announces Another Sale. Its a Milestone in Quantum Computing. - Barron's - February 14th, 2025 [February 14th, 2025]
- This Canadian company is out to stop the biggest quantum computing threat - The Logic - February 14th, 2025 [February 14th, 2025]
- QphoX, Rigetti, and Qblox Demonstrate Optical Readout Technique for Superconducting Qubits - Quantum Computing Report - February 14th, 2025 [February 14th, 2025]
- Quantum computing is already here, experts say - DIGITIMES - February 14th, 2025 [February 14th, 2025]
- FS-ISAC Releases Guidance to Help the Payment Card Industry Mitigate Risks of Quantum Computing - The Quantum Insider - February 14th, 2025 [February 14th, 2025]
- Quantum Corporation: Improved Results, But Still Not A Quantum Computing Play - Sell - Seeking Alpha - February 14th, 2025 [February 14th, 2025]
- Why AI firms should follow the example of quantum computing research - New Scientist - February 14th, 2025 [February 14th, 2025]
- Unlocking the Future: IonQ Revolutionizes Quantum Computing at CES 2025! - Jomfruland.net - February 14th, 2025 [February 14th, 2025]
- Billionaire Bill Gates Thinks Quantum Computing Could Be Ready for Prime Time Within 3 to 5 Years. Could Nvidia Be in Trouble If He's Right? - The... - February 14th, 2025 [February 14th, 2025]
- Quantum Computing in 2025: Will the Asia Pacific Continue Its Advancement? - Telecom Review Asia - February 14th, 2025 [February 14th, 2025]
- Is D-Wave the Future of Computing? Discover the Quantum Leap! - Jomfruland.net - February 14th, 2025 [February 14th, 2025]
- Revolutionizing Computing: The Rise of D-Wave! The Future of Quantum Technology - Jomfruland.net - February 14th, 2025 [February 14th, 2025]
- Quantum computing startup OQT announced on the 13th that it has attracted 3 billion won worth of see.. - - February 12th, 2025 [February 12th, 2025]
- 2 Top Quantum Computing Stocks to Buy in 2025 - The Motley Fool - February 12th, 2025 [February 12th, 2025]
- 3 Top-Rated Quantum Computing Stocks To Buy In February 2025 - Barchart - February 12th, 2025 [February 12th, 2025]
- Quantum Computing Breakthrough Brings Us Closer to Universal Simulation - SciTechDaily - February 12th, 2025 [February 12th, 2025]
- Allston quantum computing firm plans to nearly double workforce - The Boston Globe - February 12th, 2025 [February 12th, 2025]
- Quantum Computing: A Beginners Guide to Understanding the Next Revolution - TipRanks - February 12th, 2025 [February 12th, 2025]
- Want to Invest in Quantum Computing? 1 Stock That Is a Great Buy Right Now. - The Motley Fool - February 12th, 2025 [February 12th, 2025]
- 2 Top Quantum Computing Stocks to Buy in February - The Motley Fool - February 12th, 2025 [February 12th, 2025]
- Oxford quantum teleportation breakthrough brings scalable quantum computing closer to reality - Innovation News Network - February 12th, 2025 [February 12th, 2025]
- Preparing for a Quantum Computing Nightmare on the Stock Exchange: What Is Q-Day? - TipRanks - February 12th, 2025 [February 12th, 2025]
- Are Quantum Computing Stocks Worth The Investment? - Seeking Alpha - February 12th, 2025 [February 12th, 2025]
- 7 Best Quantum Computing Stocks to Buy in 2025 | Investing - U.S News & World Report Money - February 12th, 2025 [February 12th, 2025]
- Quantum computing will bring lost Bitcoin 'back in circulation Tether CEO - Cointelegraph - February 12th, 2025 [February 12th, 2025]
- Tether CEO predicts quantum computing could recover lost Bitcoin - crypto.news - February 12th, 2025 [February 12th, 2025]
- Tether CEO Paolo Ardoino Says Quantum Computing Will Allow Hackers To Take Bitcoin From Lost Wallets - The Daily Hodl - February 12th, 2025 [February 12th, 2025]
- Quantum computing wont kill Bitcoin but it might unlock Satoshis wallet, says Tether CEO - DLNews - February 12th, 2025 [February 12th, 2025]
- Partnership Delivers Scalable Quantum Computing with QEC Capability - EE Times - February 7th, 2025 [February 7th, 2025]
- PsiQuantum and Microsoft Selected to Move on to the Final Validation and Co-Design Stage of DARPAs Underexplored Systems for Utility-Scale Quantum... - February 7th, 2025 [February 7th, 2025]
- Google targets commercial quantum computing within five years - Dig Watch Updates - February 7th, 2025 [February 7th, 2025]
- Googles Quantum Computing Chief Challenges Nvidias Jensen Huangs 20-Year Timeline: 'Within Five Years Well See Real-World Applications That Are... - February 7th, 2025 [February 7th, 2025]
- Quantum Leap or Market Mirage? D-Wave Stock and the Future of Computing - Mi Valle - February 7th, 2025 [February 7th, 2025]
- The Promises and Pitfalls of Quantum Computing in Chicago - Illinois Answers Project - February 7th, 2025 [February 7th, 2025]
- Quantum Computing in Smaller Bytes, Thanks to Fordham Students Invention - Fordham University - February 7th, 2025 [February 7th, 2025]
- Is IonQ the Golden Ticket in Quantum Computing or Just a Risky Gamble? - Jomfruland.net - February 7th, 2025 [February 7th, 2025]
- Is IonQ the Future of Quantum Computing or Just a Risky Gamble? - Jomfruland.net - February 7th, 2025 [February 7th, 2025]
- D-Wave, Quantum Computing, and Rigetti Stock Slip on Trade War Fears - Barron's - February 7th, 2025 [February 7th, 2025]
- Discover the Next Wave of Quantum Computing Shares: Are They Worth the Investment? - Mi Valle - February 7th, 2025 [February 7th, 2025]
- Unlocking the Future: How Rigetti, IonQ, and D-Wave Are Pioneering Quantum Computing - Mi Valle - February 7th, 2025 [February 7th, 2025]
- Discover the Next Wave of Quantum Computing Stocks: Are They Worth the Investment? - Mi Valle - February 7th, 2025 [February 7th, 2025]
- Google says commercial quantum computing applications arriving within five years - Yahoo Finance - February 5th, 2025 [February 5th, 2025]
- Google says commercial quantum computing applications arriving within five years - Reuters - February 5th, 2025 [February 5th, 2025]
- The necessary next step for quantum and high-performance computing is sustainability, Northeastern experts say - Northeastern University - February 5th, 2025 [February 5th, 2025]
- Bill Gates: There's a possibility quantum computing will become useful in 3 to 5 years - Yahoo Finance - February 5th, 2025 [February 5th, 2025]
- Google Bets on Quantum Computing, Aims for Commercial Use in Five Years - Yahoo Finance - February 5th, 2025 [February 5th, 2025]
- Quantum Computing Stocks Tumbled in January. Should You Buy the Dip? - The Motley Fool - February 5th, 2025 [February 5th, 2025]
- Bill Gates Predicts Useful Quantum Computing Is 3 to 5 Years Away - IoT World Today - February 5th, 2025 [February 5th, 2025]
- Intel (NASDAQ:INTC), Japanese Government Working Together on Quantum Computing Development - TipRanks - February 5th, 2025 [February 5th, 2025]
- Interested in Investing in Quantum Computing Stocks? Here's a No-Brainer Buy. - The Motley Fool - February 5th, 2025 [February 5th, 2025]
- Quobly Opens a New Quantum Chip Test/Characterization Facility and Expanded Offices - Quantum Computing Report - February 5th, 2025 [February 5th, 2025]
- SEALSQ (LAES) Invests $20M in AI and Quantum Computing Startups - Yahoo Finance - February 5th, 2025 [February 5th, 2025]
- Google says quantum computing applications are five years away - Digital Trends - February 5th, 2025 [February 5th, 2025]
- Google (GOOGL) Aims to Release Commercial Quantum Computing Apps Within Five Years - TipRanks - February 5th, 2025 [February 5th, 2025]
- Quantum Leap: Is Rigetti Computing the Next Tech Sensation? - Jomfruland.net - February 5th, 2025 [February 5th, 2025]
- Google Bets on Quantum Computing, Aims for Commercial Use in Fiv - GuruFocus.com - February 5th, 2025 [February 5th, 2025]
- Quantum Computing at the BMW Group. - BMW Group - February 5th, 2025 [February 5th, 2025]
- Google says commercial quantum computing applications arriving within five years - TradingView - February 5th, 2025 [February 5th, 2025]
- D-Wave Launches "Quantum Realized" Brand Campaign to Illustrate Benefits of Todays Quantum Computing - Yahoo Finance - February 5th, 2025 [February 5th, 2025]