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
- Long-lived ytterbium states could sharpen quantum computing and atomic clocks - Phys.org - July 26th, 2026 [July 26th, 2026]
- A Pitt-led team plans to automate quantum computing research with a Department of Energy grant - University of Pittsburgh - July 26th, 2026 [July 26th, 2026]
- Quantum Computing Stocks Are Falling. Should You Buy IonQ or D-Wave, or Just Stick With Nvidia? - Yahoo Finance - July 26th, 2026 [July 26th, 2026]
- IBM to Acquire HRL Laboratories to Expand Quantum Computing Research - The Quantum Insider - July 26th, 2026 [July 26th, 2026]
- Quantum Computing Stocks Are Falling. Should You Buy IonQ or D-Wave, or Just Stick With Nvidia? - AOL.com - July 26th, 2026 [July 26th, 2026]
- [Webinar] Quantum Law: AI, Quantum Computing, and the Future of Legal Judgment - August 6th, 1:00 pm - 2:00 pm ET - JD Supra - July 26th, 2026 [July 26th, 2026]
- Quantum Computing Stocks IonQ, Rigetti, and D-Wave Are Sending Shockwaves Through Wall Street With This $988 Million Warning - The Motley Fool - July 26th, 2026 [July 26th, 2026]
- Best Quantum Computing Stocks To Keep An Eye On - July 25th - MarketBeat - July 26th, 2026 [July 26th, 2026]
- Got $1,000? This Under-the-Radar Quantum Computing Pioneer Could Be a Brilliant Buy - The Motley Fool - July 26th, 2026 [July 26th, 2026]
- Strategy, BlackRock form Bitcoin Security Consortium to prepare for quantum computing threat - The Block - July 26th, 2026 [July 26th, 2026]
- Quantum Computing Is Down 71% From Its High. Heres What Investors Are Actually Betting On - TIKR.com - July 26th, 2026 [July 26th, 2026]
- Illinois offering $1.8M in tax credits to attract quantum computing companies - MyStateline - July 26th, 2026 [July 26th, 2026]
- Galaxy Commits $5 Million to Prepare Bitcoin for Quantum Computing Threat - The Quantum Insider - July 21st, 2026 [July 21st, 2026]
- 1 Quantum Computing Stock That Could Be the Next Palantir - Yahoo Finance - July 21st, 2026 [July 21st, 2026]
- Singapore Defence Agencies Partner With IBM to Explore Quantum Computing Applications - The Quantum Insider - July 21st, 2026 [July 21st, 2026]
- How Quantum Computing Earns Its Place in the Data Center - EE Times - July 21st, 2026 [July 21st, 2026]
- Cutting through the quantum computing noise - Metal Tech News - July 21st, 2026 [July 21st, 2026]
- How to Secure Model Context Protocol (MCP) Deployments Against Quantum Computing Threats - Security Boulevard - July 21st, 2026 [July 21st, 2026]
- Bloch Quantum Tech Hub Secures $55M in Federal and Matching Grants to Build U.S. Quantum Supply Chain - Quantum Computing Report - July 21st, 2026 [July 21st, 2026]
- Bitpanda Mythbusters: Will quantum computing destroy the blockchain? - Bitpanda - July 21st, 2026 [July 21st, 2026]
- BTQ Technologies and TIDAL PWR Partner to Develop Trusted Quantum Data Center Reference Architectures - Quantum Computing Report - July 21st, 2026 [July 21st, 2026]
- 1 Quantum Computing Stock That Could Be the Next Palantir - The Motley Fool - July 21st, 2026 [July 21st, 2026]
- Israel Innovation Authority Launches NIS 100M ($33M USD) Call to Build National Quantum R&D Infrastructure - Quantum Computing Report - July 21st, 2026 [July 21st, 2026]
- Watch Why Quantum Computing May Depend on the Moon - Bloomberg.com - July 21st, 2026 [July 21st, 2026]
- DIS and DSTA Collaborate with IBM to Explore Quantum Computing for Mission Planning, Logistics Optimisation - mindef.gov.sg - July 21st, 2026 [July 21st, 2026]
- Israel earmarks NIS 100 million for national quantum computing R&D infrastructure - The Times of Israel - July 21st, 2026 [July 21st, 2026]
- Forum Live: Exploring Quantum Inward & Reaching for Space Outward - A Dialogue at the Starting Point of the New Computing Power Civilization -... - July 20th, 2026 [July 20th, 2026]
- Topological Materials Market Growth Forecast to 2035: Quantum Computing and Spintronics Drive Expansion - News and Statistics - IndexBox - July 20th, 2026 [July 20th, 2026]
- UConn, Yale-led collaboration wins federal grant for quantum computing. Its worth tens of millions. - Hartford Courant - July 20th, 2026 [July 20th, 2026]
- High Q Technologies Partners with Creative Biostructure to Scale Quantum-Enabled EPR Protein Mapping - Quantum Computing Report - July 20th, 2026 [July 20th, 2026]
- Quantum Computing (QUBT) Following NHanced Deal And ESOP Filing, Is The Bull Case Too Cheap? - simplywall.st - July 20th, 2026 [July 20th, 2026]
- Quantum computing stocks outlook: IonQ, Rigetti, and D-Wave after a brutal selloff - Investing.com - July 18th, 2026 [July 18th, 2026]
- Intels Former CEO Gelsinger Admits Firm Scoffed at NVIDIAs GPUs While Riding High on CPU Dominance & Makes Big Quantum Computing Claims - Wccftech - July 18th, 2026 [July 18th, 2026]
- When will quantum computing have its breakout moment? - Latitude Media - July 18th, 2026 [July 18th, 2026]
- Classiq and ParityQC Partner to Streamline Hardware-Aware Circuit Optimization - Quantum Computing Report - July 18th, 2026 [July 18th, 2026]
- AT&T Business and Palo Alto Networks Partner to Deliver Quantum-Resilient SASE Fabric - Quantum Computing Report - July 18th, 2026 [July 18th, 2026]
- Logical Qubit Technology Unveils AGate Quantum Cloud Platform and Multi-Year Roadmap - Quantum Computing Report - July 18th, 2026 [July 18th, 2026]
- IonQ Stock And 2 Quantum Computing Picks For Investors to Watch - simplywall.st - July 18th, 2026 [July 18th, 2026]
- Jane Goodall Institute USA and FormationQ Launch Quantum Computing Research Program to Explore Ecological Roots of War And Peace - The Quantum Insider - July 18th, 2026 [July 18th, 2026]
- IBM stock jumps on quantum computing breakthrough with U.S. scientists - Yahoo Finance - July 7th, 2026 [July 7th, 2026]
- D-Wave Quantum (QBTS) to Receive $1.5M Grant Through NSF Project to Strengthen US Quantum Computing Leadership - Yahoo! Finance Canada - July 7th, 2026 [July 7th, 2026]
- 3 Quantum Computing Stocks to Buy in July - 24/7 Wall St. - July 7th, 2026 [July 7th, 2026]
- What is quantum computing, and why does Trump care? - Mashable - July 7th, 2026 [July 7th, 2026]
- 3 Quantum Computing Stocks to Watch in the Second Half of 2026 - The Motley Fool - July 7th, 2026 [July 7th, 2026]
- 3 Quantum Computing Stocks to Watch in the Second Half of 2026 - Yahoo Finance - July 7th, 2026 [July 7th, 2026]
- Alfred University and Classiq Launch Quantum Computing Initiative - The Quantum Insider - July 7th, 2026 [July 7th, 2026]
- Pasqal and MegazoneCloud Partner to Bring Quantum Computing to South Korea - The Quantum Insider - July 7th, 2026 [July 7th, 2026]
- 3 Quantum Computing Stocks to Buy in July - Yahoo Finance - July 7th, 2026 [July 7th, 2026]
- Quantum computing is about to get a lot more real - Fast Company - July 7th, 2026 [July 7th, 2026]
- University of Sydney and IBM Identify Major Source of Quantum Computing Errors - The Quantum Insider - July 7th, 2026 [July 7th, 2026]
- How to Start a Career in Quantum Computing in 2026 - The Quantum Insider - July 7th, 2026 [July 7th, 2026]
- IOSG: Countdown to Q-DayWill Quantum Computing Spell the End for Cryptocurrencies? - - July 7th, 2026 [July 7th, 2026]
- This Quantum Computing Stock Recently Went Public, and It Could Be the Buy of the Year - The Motley Fool - July 7th, 2026 [July 7th, 2026]
- IQM achieves milestone in quantum error correction, enabling fault-tolerant computing in the near-term - Business Wire - June 26th, 2026 [June 26th, 2026]
- IonQ vs. Quantinuum: Which Quantum Computing Accuracy-Leading Stock Looks Like the Better Buy? - The Motley Fool - June 26th, 2026 [June 26th, 2026]
- AI and quantum computing: How the powerful partnership shaping the future - WION - June 26th, 2026 [June 26th, 2026]
- IonQ vs. Quantinuum: Which Quantum Computing Accuracy-Leading Stock Looks Like the Better Buy? - Yahoo Finance - June 26th, 2026 [June 26th, 2026]
- Quantum Computing Threat Elevates Cryptography to Board-Level Risk Oversight - WSJ - June 26th, 2026 [June 26th, 2026]
- Microsoft Stock After the Quantum Computing Controversy: What Investors Should Know - WEEX - June 26th, 2026 [June 26th, 2026]
- Quantum Computing (QUBT) Completes NHanced Deal To Expand Manufacturing For Quantum Tech - Yahoo Finance - June 24th, 2026 [June 24th, 2026]
- 3 Quantum Computing Stocks With More Upside Than SpaceX - The Motley Fool - June 24th, 2026 [June 24th, 2026]
- Quantum Computing (QUBT) Buys NHanced Semiconductors And Opens Fab 2 For Hardware Push - simplywall.st - June 24th, 2026 [June 24th, 2026]
- The Path to Utility-Scale Quantum Computing in HPC Starts with the Silicon Transistor - HPCwire - June 22nd, 2026 [June 22nd, 2026]
- IBM Nighthawk Processor Validated in Quantum Chromodynamics and Cybersecurity Benchmarks - Quantum Computing Report - June 22nd, 2026 [June 22nd, 2026]
- Digital twins, quantum computing and 40 years of HPC: What to watch at ISC High Performance 2026 - Scientific Computing World - June 22nd, 2026 [June 22nd, 2026]
- Rigetti Computing Stock (RGTI) Opinions on Quantum Computing Sector Growth - Quiver Quantitative - June 22nd, 2026 [June 22nd, 2026]
- Amazon (NASDAQ: AMZN) Sets Five-To-Seven Year Window For Commercially Viable Quantum Computing - foreignpolicyjournal.com - June 22nd, 2026 [June 22nd, 2026]
- Cleveland Clinic and IBM Forum Highlights Advancements in AI and Quantum Computing for Healthcare Research - Cleveland Clinic Newsroom - June 16th, 2026 [June 16th, 2026]
- Atom Computing and Phasecraft Partner on Material Science Algorithms - Quantum Computing Report - June 16th, 2026 [June 16th, 2026]
- HPE Advances Quantum Computing at Scale with Expanded Industry Collaborations - The Quantum Insider - June 16th, 2026 [June 16th, 2026]
- Why optical quantum computing could level up humanity to solving its greatest challenges - The World Economic Forum - June 16th, 2026 [June 16th, 2026]
- He Called Quantum Computing Before 1,800% Gains Here Are His Next Big Trades - InvestorPlace - June 16th, 2026 [June 16th, 2026]
- Atom Computing and Phasecraft Announce Strategic Collaboration to Accelerate Development of Next-Generation Materials - The Quantum Insider - June 16th, 2026 [June 16th, 2026]
- UK and Japan Ratify Frontier Technology Partnership to Align Quantum Computing Initiatives - Quantum Computing Report - June 16th, 2026 [June 16th, 2026]
- QuEra Outlines 2028 Roadmap for 256-Logical-Qubit Libra System and Expanded AWS Cloud Partnership - Quantum Computing Report - June 16th, 2026 [June 16th, 2026]
- Why is Quantum Computing stock surging today? - Investing.com - June 16th, 2026 [June 16th, 2026]
- HPE expands quantum computing partnerships with eight firms - Investing.com - June 16th, 2026 [June 16th, 2026]
- IQM CEO on the potential of quantum computing - CNBC - June 16th, 2026 [June 16th, 2026]
- Watch Why the US Is Investing in Quantum Computing - Bloomberg.com - June 16th, 2026 [June 16th, 2026]
- Quantum Computing: A Speculative Buy In An Emerging Technological Frontier (NASDAQ:QUBT) - Seeking Alpha - June 16th, 2026 [June 16th, 2026]