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
- D-Wave Quantum Stock Surges 5% to $19.65 Ahead of Q4 Earnings: Analysts See Major Upside in Quantum Computing - International Business Times Australia - February 26th, 2026 [February 26th, 2026]
- Prediction: The Quantum Computing Hype Could Cool Off in 2026 -- Here's Why - Nasdaq - February 26th, 2026 [February 26th, 2026]
- IonQ jumps as quantum computing firm shows explosive growth in Q4 (IONQ:NYSE) - Seeking Alpha - February 26th, 2026 [February 26th, 2026]
- Quobly and Entropica Labs Form Strategic Alliance to Advance Silicon-Based Fault Tolerance - Quantum Computing Report - February 26th, 2026 [February 26th, 2026]
- D-Wave (NYSE: QBTS) to Bring Commercial Quantum Computing to CES 2026 - USA Today - February 26th, 2026 [February 26th, 2026]
- Want to Invest in Quantum Computing? X Stocks That Are Great Buys Right Now - The Globe and Mail - February 26th, 2026 [February 26th, 2026]
- Broadband Breakfast on March 25, 2026 Quantum Computing - Broadband Breakfast - February 26th, 2026 [February 26th, 2026]
- Scientists may have found the 'holy grail' of quantum computing - Earth.com - February 26th, 2026 [February 26th, 2026]
- Challenges and Prospects of Quantum Computing Investments - Intellectia AI - February 26th, 2026 [February 26th, 2026]
- Understanding the Quantum Computing Hardware Landscape - The Quantum Insider - February 24th, 2026 [February 24th, 2026]
- IQM, a Global Leader for Quantum Computing, to Become the First Listed European Quantum Company, Through Merger with Real Asset Acquisition Corp. -... - February 24th, 2026 [February 24th, 2026]
- 2 Quantum Computing Stocks That Could Make a Millionaire - The Motley Fool - February 24th, 2026 [February 24th, 2026]
- Consortium Led by 4colors Research Awarded NQCC SparQ Grant to Advance Optimisation with Quantum Computing - The Quantum Insider - February 24th, 2026 [February 24th, 2026]
- Quantum Computing Shifts To Integrated Photonics With Luminar And Defense Focus - simplywall.st - February 24th, 2026 [February 24th, 2026]
- Quantum Computing Inc. to Host Fourth Quarter And Full Year 2025 Shareholder Call on Monday, March 2, 2026 - GuruFocus - February 24th, 2026 [February 24th, 2026]
- IBM to Invest in Quantum Computing and Cloud Infrastructure in India, Says Ashwini Vaishnaw - Open Magazine - February 24th, 2026 [February 24th, 2026]
- Why nows the time to prepare for the quantum computing era - SC Media - February 24th, 2026 [February 24th, 2026]
- 2 Quantum Computing Stocks That Could Make a Millionaire - The Globe and Mail - February 24th, 2026 [February 24th, 2026]
- Quantum Computing Stocks IonQ, Rigetti Computing, and D-Wave Quantum Have Issued a Can't-Miss $615 Million Warning to Wall Street - Nasdaq - February 22nd, 2026 [February 22nd, 2026]
- RGTI or QBTS: Top Analyst Selects the Top Quantum Computing Stock to Buy - Yahoo Finance - February 22nd, 2026 [February 22nd, 2026]
- Guest Post -- Quantum Computing and the Future of Digital Asset Custody: What Institutions Should Prepare for Now - The Quantum Insider - February 22nd, 2026 [February 22nd, 2026]
- Telefnica, Vithas, and UFV apply quantum computing to the creation of cancer drugs - telefonica.com - February 22nd, 2026 [February 22nd, 2026]
- 3 Quantum Computing Stocks with Potential to Beat the Market 2/20/2026 - TipRanks - February 22nd, 2026 [February 22nd, 2026]
- Bitcoin Price Prediction: 12-Year Trend Shattered Has Broken Is Quantum Computing Secretly Killing Bitcoin? - Yahoo Finance - February 22nd, 2026 [February 22nd, 2026]
- Comcast Corporation (CMCSA) Reports Positive Results From Quantum Computing Trial - Yahoo Finance - February 20th, 2026 [February 20th, 2026]
- Im a Computing Dummy Who Tried Quantum Coding. Heres What Happened - Gizmodo - February 20th, 2026 [February 20th, 2026]
- Now is the time to invest in quantum computing, Clemson University researchers say - Clemson News - February 20th, 2026 [February 20th, 2026]
- 1 Quantum Computing Stock to Buy Hand Over Fist in February - Yahoo Finance - February 20th, 2026 [February 20th, 2026]
- 2 Top Quantum Computing Stocks to Buy in 2026 - The Motley Fool - February 20th, 2026 [February 20th, 2026]
- Palm Beach County Receives $1M Federal Funding to Expand Quantum Ecosystem - Quantum Computing Report - February 20th, 2026 [February 20th, 2026]
- Here's the Quantum Computing Stock Wall Street Loves the Most (Hint: It's Not IonQ or Rigetti) - The Globe and Mail - February 20th, 2026 [February 20th, 2026]
- Quantum Computing Stocks IonQ, Rigetti Computing, and D-Wave Quantum Have Issued a Can't-Miss $615 Million Warning to Wall Street - Yahoo Finance - February 20th, 2026 [February 20th, 2026]
- MicroAlign Secures 2.5M ($3M USD) EIC Funding for Industrialization of Quantum Fiber Arrays - Quantum Computing Report - February 20th, 2026 [February 20th, 2026]
- IBM Ventures Invests in SQK and QodeX Quantum for Specialized Software Development - Quantum Computing Report - February 20th, 2026 [February 20th, 2026]
- SEALSQ and Lattice Deliver Unified TPM-FPGA Architecture for Post-Quantum Security - Quantum Computing Report - February 20th, 2026 [February 20th, 2026]
- Bitcoin developer rejects claims that quantum computing triggered sell-off - Traders Union - February 20th, 2026 [February 20th, 2026]
- SEALSQ invests in EeroQ to advance quantum computing technology By Investing.com - Investing.com - February 20th, 2026 [February 20th, 2026]
- Infleqtion CEO Matt Kinsella on how the newly public quantum computing company is following in the footsteps of Nvidia - Sherwood News - February 18th, 2026 [February 18th, 2026]
- 1 Quantum Computing Stock to Buy Hand Over Fist in February - The Motley Fool - February 18th, 2026 [February 18th, 2026]
- Is Quantum Computing Stock Going to $0? - The Motley Fool - February 18th, 2026 [February 18th, 2026]
- Quantum Computing Can Solve the Hardest Port Scheduling Problems - The Maritime Executive - February 18th, 2026 [February 18th, 2026]
- Firgun Ventures Backs LA-based Startup, Quantum Elements, and its AI-Powered Platform to Accelerate Quantum Computing - The Quantum Insider - February 18th, 2026 [February 18th, 2026]
- Quantum Computing Tackles Complex Chemistry With Boosted Efficiency And Accuracy - Quantum Zeitgeist - February 18th, 2026 [February 18th, 2026]
- 9 Best Quantum Computing Stocks to Buy in 2026 - The Motley Fool - February 18th, 2026 [February 18th, 2026]
- Bitcoin Price Prediction: 12-Year Trend Shattered Has Broken Is "Quantum Computing" Secretly Killing Bitcoin? - Cryptonews - February 18th, 2026 [February 18th, 2026]
- Delta Gold Technologies and Penn State Partner on Scalable Gold-Based Quantum Materials Research - Quantum Computing Report - February 18th, 2026 [February 18th, 2026]
- Quantum Computing Predicts Stock Trends with Accuracy Exceeding Limits of Current Models - Quantum Zeitgeist - February 18th, 2026 [February 18th, 2026]
- The future of Quantum computing the tech, companies, and roadmaps that map out a coherent quantum future - Tom's Hardware - February 18th, 2026 [February 18th, 2026]
- Moeve and the Andalusian Digital Agency join forces to promote quantum computing - WebWire - February 18th, 2026 [February 18th, 2026]
- Q-CTRL Targets Defense and Aerospace With Advances in Quantum Navigation and Computing - TipRanks - February 18th, 2026 [February 18th, 2026]
- Why Wedbush Thinks Norway Could Be Key for This Quantum Computing Stock -- and the Entire Industry - Barchart.com - February 18th, 2026 [February 18th, 2026]
- Justin Drake: Quantum computing could break cryptographic keys in minutes, three cryptographic components at risk, and the systemic threat to all... - February 18th, 2026 [February 18th, 2026]
- A Shortseller Claims the Leading Quantum Computing Company Isnt All It Seems to Be - Barron's - February 4th, 2026 [February 4th, 2026]
- IBM CEO reveals when theyll know if quantum computing is successful - CNN - February 4th, 2026 [February 4th, 2026]
- 2 Quantum Computing Stocks to Buy Hand Over Fist in February - Yahoo Finance - February 4th, 2026 [February 4th, 2026]
- Is IonQ the Top Quantum Computing Stock to Buy Right Now? - Nasdaq - February 4th, 2026 [February 4th, 2026]
- Prediction: 5 Quantum Computing Stocks That Will Be Worth More Than IonQ 5 Years From Now - The Motley Fool - February 4th, 2026 [February 4th, 2026]
- Quantum Computing Inc. (QUBT) Spends $110 Million to Take Control of Its Quantum Hardware - TipRanks - February 4th, 2026 [February 4th, 2026]
- 2 Quantum Computing Stocks to Buy Hand Over Fist in February - The Motley Fool - February 4th, 2026 [February 4th, 2026]
- 2 Top-Rated Quantum Computing Stocks to Buy on the Dip - Yahoo Finance - February 4th, 2026 [February 4th, 2026]
- Short-seller claims IonQ, the biggest quantum computing company on the stock market, failed to disclose holes in its revenue - Yahoo Finance - February 4th, 2026 [February 4th, 2026]
- Economic benefits quantum computing can bring to Sussex and Greater Brighton - Oxford Economics - February 4th, 2026 [February 4th, 2026]
- Is IonQ the Top Quantum Computing Stock to Buy Right Now? - The Motley Fool - February 4th, 2026 [February 4th, 2026]
- Lake Street Reaffirms Their Buy Rating on Quantum Computing (QUBT) - The Globe and Mail - February 4th, 2026 [February 4th, 2026]
- FAU brings quantum computing on-site in new partnership with D-Wave - FAU University Press - February 4th, 2026 [February 4th, 2026]
- Forget Rigetti Computing: Serious Investors Are Placing Their Chips on This EnterpriseReady Quantum Platform - The Motley Fool - February 4th, 2026 [February 4th, 2026]
- Forget Rigetti Computing: This Quantum Veteran With Real Cash Flow Is the Smarter LongTerm Bet - The Motley Fool - January 30th, 2026 [January 30th, 2026]
- What the IBM Earnings Call Revealed About the Future of Quantum Computing - inc.com - January 30th, 2026 [January 30th, 2026]
- Quantum Computing in the Cloud: What it Means for Businesses - The Quantum Insider - January 30th, 2026 [January 30th, 2026]
- IBM Showcases New Vision for Quantum. How Nvidia and AMD Fit in the Computing Future. - Barron's - January 30th, 2026 [January 30th, 2026]
- 3 Quantum Computing Stocks with Potential to Beat the Market 1/30/2026 - TipRanks - January 30th, 2026 [January 30th, 2026]
- CP Group Secures Global Headquarters Relocation of Quantum Computing Pioneer D-Wave to Its Boca Raton Innovation Campus (BRiC) - Yahoo Finance - January 30th, 2026 [January 30th, 2026]
- Leading Companies Reinforcing Their Presence in the Quantum Computing Market for Energy and Utilities - openPR.com - January 30th, 2026 [January 30th, 2026]
- Sovereign Wealth Fund Leads Quantum Computing Funding Round - Sovereign Wealth Fund Institute | SWFI - January 30th, 2026 [January 30th, 2026]
- IonQ to Acquire SkyWater Technology, Creating the Only Vertically Integrated Full-Stack Quantum Platform Company - IonQ Quantum Computing - January 28th, 2026 [January 28th, 2026]
- Forget Quantum Computing Inc. Stock: Buy This AIFirst Tech Titan Hiding in Plain Sight - The Motley Fool - January 28th, 2026 [January 28th, 2026]
- Prediction: This Quantum Computing Stock Will Skyrocket in 2026 - Yahoo Finance - January 28th, 2026 [January 28th, 2026]
- Cyber Insights 2026: Quantum Computing and the Potential Synergy With Advanced AI - SecurityWeek - January 28th, 2026 [January 28th, 2026]
- IonQ Completes Acquisition of Skyloom, Expanding Quantum Networking and Secure Communications Capabilities - IonQ Quantum Computing - January 28th, 2026 [January 28th, 2026]
- D-Wave Updates Annealing and Gate-Model Quantum Computing Roadmap - The Quantum Insider - January 28th, 2026 [January 28th, 2026]