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
- Quantum Computing Can Be Brought to the Masses, if It Is Decentralized - CCN.com - January 9th, 2025 [January 9th, 2025]
- Why Quantum Computing Specialist IonQ (IONQ) May Have Reached The End Of The Road - Barchart - January 9th, 2025 [January 9th, 2025]
- Nvidia CEO Jensen Huang just tanked quantum-computing stocks after saying their most exciting developments are more than a decade away - Fortune - January 9th, 2025 [January 9th, 2025]
- Quantum Computing Stocks Sink as Nvidia CEO Says Tech Is 15 to 30 Years Away - Investopedia - January 9th, 2025 [January 9th, 2025]
- Why Quantum Computing Stocks Rigetti Computing, Quantum Computing, and D-Wave Computing All Plunged Today - The Motley Fool - January 9th, 2025 [January 9th, 2025]
- Quantum Computing Stocks Crashed -- Here's Why - The Motley Fool - January 9th, 2025 [January 9th, 2025]
- Nvidia CEO Jen-Hsun Huang's simple reminder that useful quantum computing is a long way off has somehow caused industry stocks to plummet - PC Gamer - January 9th, 2025 [January 9th, 2025]
- How Quantum Computing Could Advance One Health - Impakter - January 9th, 2025 [January 9th, 2025]
- Quantum computing stocks are having a rough start to 2025: IonQ, D-Wave, Rigetti tank after Nvidia CEO predicts 20-year horizon - Fast Company - January 9th, 2025 [January 9th, 2025]
- Quantum Computing, Inc. Announces Private Placement of Common Stock for Proceeds of $100 Million - Yahoo Finance - January 9th, 2025 [January 9th, 2025]
- 2025 will see huge advances in quantum computing. So what is a quantum chip and how does it work? - The Conversation - January 9th, 2025 [January 9th, 2025]
- Nvidia CEO Jensen Huang just tanked quantum-computing stocks after saying their most exciting developments are more than a decade away - AOL - January 9th, 2025 [January 9th, 2025]
- Collaboration to explore the use of graphene technology in quantum computing - The Manufacturer - January 9th, 2025 [January 9th, 2025]
- Quantum computing stocks tumble after Nvidia boss Jensen Huang says the tech is still 20 years away - Markets Insider - January 9th, 2025 [January 9th, 2025]
- Want to Buy a Quantum Computing Stock in 2025? You Might Consider This Quantum Computing ETF. - The Motley Fool - January 9th, 2025 [January 9th, 2025]
- Ride the Quantum Computing Wave with These 2 Stocks: RGTI, QBTS - Yahoo Finance - January 9th, 2025 [January 9th, 2025]
- Shaping the Future of Quantum Computing in the United Arab Emirates (UAE) - Quantum Computing Report - January 9th, 2025 [January 9th, 2025]
- How Nvidia CEO Jensen Huang's one sentence wiped out $8 billion in market cap of quantum computing compan - The Times of India - January 9th, 2025 [January 9th, 2025]
- Will This Quantum Computing Stock Be a Must-Own in 2025? - The Motley Fool - January 9th, 2025 [January 9th, 2025]
- Quantum-computing stocks tumble on Nvidia CEOs comment that theyre decades away from being very useful - Sherwood News - January 9th, 2025 [January 9th, 2025]
- Analyzing Quantum Computing Has Been The Most Challenging Project In My Career (NASDAQ:QUBT) - Seeking Alpha - January 3rd, 2025 [January 3rd, 2025]
- Norma and Mabel Quantum Partner to Launch Integrated Quantum Computing System in Korea - Quantum Computing Report - January 3rd, 2025 [January 3rd, 2025]
- How Microsoft and Partners are Shaping the Future of Quantum Computing - The Quantum Insider - January 3rd, 2025 [January 3rd, 2025]
- One Quantum Computing ETF to Buy Hand Over Fist as Googles Willow Supercharges the Market - Barchart - January 3rd, 2025 [January 3rd, 2025]
- MicroCloud Hologram Inc. Develops Semiconductor Quantum Dot Hole Spin Qubit Technology, Advancing the Frontiers of Quantum Computing - Yahoo Finance - January 3rd, 2025 [January 3rd, 2025]
- Quantum Applications in the Automotive Industry - Quantum Computing Report - January 3rd, 2025 [January 3rd, 2025]
- Jim Cramer Warns 'Day Is Not Near Enough To Justify The Current Valuations' Of Quantum Computing, Nuclear Power Stocks - Benzinga - January 3rd, 2025 [January 3rd, 2025]
- MicroCloud Hologram's Stock Surges 31% on Quantum Computing Breakthrough: What This Means for the Future of Tech - The Africa Logistics - January 3rd, 2025 [January 3rd, 2025]
- Quantum Computing Stocks Like Rigetti Computing Are Soaring And This ETF Lets Investors Participate In The Boom Story - Benzinga - January 3rd, 2025 [January 3rd, 2025]
- Future Industry Growth Of Commercial Quantum Computing - openPR - January 3rd, 2025 [January 3rd, 2025]
- GCAN to Explore Strategic Alternatives in Artificial Intelligence and Quantum Computing - GlobeNewswire - January 3rd, 2025 [January 3rd, 2025]
- Jim Cramer talks being cautious with nuclear power and quantum computing stocks - MSN - January 3rd, 2025 [January 3rd, 2025]
- Quantum Computing Is Finally Here. But What Is It? - Bloomberg - December 27th, 2024 [December 27th, 2024]
- Should You Buy Quantum Computing Stocks in 2025? - The Motley Fool - December 27th, 2024 [December 27th, 2024]
- Rigetti Stock Doubles in Days: Here's the Quantum Computing Stock's Next Target - Money Morning - December 27th, 2024 [December 27th, 2024]
- 3 Quantum Computing Stocks Surging to End the Year - Schaeffers Research - December 27th, 2024 [December 27th, 2024]
- Quantum Computing Advances in 2024 Put Security In Spotlight - Dark Reading - December 27th, 2024 [December 27th, 2024]
- Daejeon City Partners with Norma and National Nanofab Center to Advance Quantum Computing - Quantum Computing Report - December 27th, 2024 [December 27th, 2024]
- Why IonQ Is the Best Quantum Computing Stock to Buy Right Now - The Motley Fool - December 27th, 2024 [December 27th, 2024]
- Singapore Startup's Quantum Controller Aimed at Bridging the Gap Between Traditional and Quantum Computing - The Quantum Insider - December 27th, 2024 [December 27th, 2024]
- 2 Quantum Computing Stocks Poised for Big Gains: Get Their Price Targets Here - Money Morning - December 27th, 2024 [December 27th, 2024]
- SCIENCE NOTEBOOK | More Efficient Quantum Computing, Aggressive Lowering of BP of Type 2 Diabetes Patients, and Heat-Related Mortality Due to Climate... - December 27th, 2024 [December 27th, 2024]
- Rigetti Computing leads quantum stocks higher to end week - Seeking Alpha - December 27th, 2024 [December 27th, 2024]
- Quantum Computing Stock QUBT Has More Than Doubled While Bitcoin Has Dropped Since Google's 'Willow' Reveal: What Does This Mean? - Benzinga - December 27th, 2024 [December 27th, 2024]
- Three Ways Nvidia (NVDA) Benefits From The Quantum Computing Revolution - Yahoo Finance - December 27th, 2024 [December 27th, 2024]
- Quantum Stocks: Avoid Rigetti Computing And Buy IonQ Instead (NYSE:IONQ) - Seeking Alpha - December 27th, 2024 [December 27th, 2024]
- SEALSQ Secures $60.0 Million in Total Funding to Advance Post-Quantum Cryptography Semiconductor Technology - Quantum Computing Report - December 27th, 2024 [December 27th, 2024]
- Quantum Computing Shares Soar! Investors Eye the Future. - Jomfruland.net - December 27th, 2024 [December 27th, 2024]
- What Googles quantum computing breakthrough Willow means for the future of bitcoin and other cryptos - CNBC - December 22nd, 2024 [December 22nd, 2024]
- Quantum computing will fortify Bitcoin signatures: Adam Back - Cointelegraph - December 22nd, 2024 [December 22nd, 2024]
- Quantum Computing: The New AI? A Look at the Rapidly Expanding Market and Top Stocks For 2025 - Benzinga - December 22nd, 2024 [December 22nd, 2024]
- D-Wave Quantum (QBTS) Riding High on the Quantum Computing Tide - TipRanks - December 22nd, 2024 [December 22nd, 2024]
- Quantum Computing, BlackBerry And Lucid Group Are Among Top Mid Cap Gainers Last Week (December 16-20): Are The Others In Your Portfolio? - Benzinga - December 22nd, 2024 [December 22nd, 2024]
- Quantum computing stocks are having a great 2024: QUBT, D-Wave, Rigetti soar on enthusiasm for the cutting-edge tech - Fast Company - December 22nd, 2024 [December 22nd, 2024]
- IBMs stock could ride the coattails of the quantum-computing rally. Heres how. - MarketWatch - December 22nd, 2024 [December 22nd, 2024]
- Quantum Computing Stock Skyrockets Further on NASA Contract - Investopedia - December 22nd, 2024 [December 22nd, 2024]
- Is the Quantum Computing Stock Rally Over So Soon? - TipRanks - December 22nd, 2024 [December 22nd, 2024]
- Quantum computing stocks mixed as eye-popping rally slows a bit - Seeking Alpha - December 22nd, 2024 [December 22nd, 2024]
- Bitcoin would need over 300 days of downtime to adequately defend itself from the 'imminent' threat of quantum computing, research finds - Fortune - December 22nd, 2024 [December 22nd, 2024]
- Rigetti Stock Investors: Here's What You Need to Know About This Quantum Computing Stock - The Motley Fool - December 22nd, 2024 [December 22nd, 2024]
- 2 Top Stocks in Quantum Computing and Robotics That Could Soar in 2025 - Yahoo Finance - December 22nd, 2024 [December 22nd, 2024]
- New day dawns for quantum computing in the UK - physicsworld.com - December 22nd, 2024 [December 22nd, 2024]
- What's Going On With Quantum Computing (QUBT) Stock? - Benzinga - December 22nd, 2024 [December 22nd, 2024]
- Quantum Computing Stock Investors: Here's What You Need to Know - The Motley Fool - December 22nd, 2024 [December 22nd, 2024]
- Quantum Computing Is Coming And Lawyers Arent Ready - Above the Law - December 22nd, 2024 [December 22nd, 2024]
- 2024: The Year of Quantum Computing Roadmaps - Quantum Computing Report - December 22nd, 2024 [December 22nd, 2024]
- The Future is Here. Unlocking the Mysteries of Quantum Computing. - Qhubo - December 22nd, 2024 [December 22nd, 2024]
- 2 Top Stocks in Quantum Computing and Robotics That Could Soar in 2025 - The Motley Fool - December 22nd, 2024 [December 22nd, 2024]
- Quantum walk computing unlocks new potential in quantum science and technology - MSN - December 22nd, 2024 [December 22nd, 2024]
- Investing in the Future of Quantum Computing: Stocks to Watch Now - MarketBeat - December 22nd, 2024 [December 22nd, 2024]
- Quantum Computing Inches Closer to Reality After Another Google Breakthrough - The New York Times - December 14th, 2024 [December 14th, 2024]
- How Google's Willow is A Quantum Leap in Computing Tech - Technology Magazine - December 14th, 2024 [December 14th, 2024]
- Google claims quantum computing milestone but the tech can't solve real-world problems yet - CNBC - December 14th, 2024 [December 14th, 2024]
- Ten septillion years: Google makes another quantum computing breakthrough - Semafor - December 14th, 2024 [December 14th, 2024]
- BMW Group and Airbus reveal winners of Quantum Computing Challenge - BMW Press - December 14th, 2024 [December 14th, 2024]
- The Race for Fault-Tolerant Quantum Computing: Unveiling the Next Leap | by Disruptive Concepts | Dec, 2024 - Medium - December 14th, 2024 [December 14th, 2024]
- Can the Rally in Alphabet (GOOGL) Stock Continue with New Quantum Computing Chip? - Yahoo Finance - December 14th, 2024 [December 14th, 2024]
- Unlocking the Full Power of Quantum Computing With a Revolutionary Superconducting Processor - SciTechDaily - December 14th, 2024 [December 14th, 2024]
- What Googles Willow chip means for the future of quantum computing, AI, and encryption - The Indian Express - December 14th, 2024 [December 14th, 2024]
- Think AI Is Baffling? Heres How to Pretend You Understand Quantum Computing. - Barron's - December 14th, 2024 [December 14th, 2024]