• Products
    • Quantum Control Systems
      • OPX1000
        High-Density Control Platform for Quantum Computers at Scale
      • OPX+
        Ultra-Fast Quantum Controller
      • Octave
        Up/Down Conversion Up to 18 GHz
      • QDAC
        Ultra-Low-Noise 24-Channel DAC (by QDevil)
      • QBox
        Highly Reliable 24-Channel Breakout Box (by QDevil)
    • Cryogenic Control Systems
      • QCage
        MW Cavity Sample Holder (by QDevil)
      • QBoard
        Non-Magnetic Advanced Sample Holder (by QDevil)
      • QFilter
        Compact Multi-Stage Low-Pass Cryogenic Filter (by QDevil)
    • OPX1000
      High-Density Control Platform for Quantum Computers at Scale
  • Solutions
    • Use Cases
      • Advancing Quantum Research
      • Quantum Computing at Scale
      • Quantum for HPC
      • Quantum Sensing
      • Quantum Networks
    • Qubit Types
      • Superconducting
      • Defect Centers (NV)
      • Quantum Dots (Spin)
      • Neutral Atoms
    • Tracking the Trajectory of a Qubit’s State in Real-Time
      Easily run weak measurements to unlock exciting quantum experiments
  • Technology
    • Core Technologies
      • PPU
        Orchestrating classical and quantum computing in real time
      • QUA
        Extremely intuitive pulse-level quantum programming
    • Quantum Control Tutorial
      How to Dramatically Increase the Initialization Fidelity of Your Qubits with QUA
  • Resource Center
    • left
      • Scientific Publications
      • Brochures
      • Videos
      • Blog
      • FAQ
    • Finally: A Practical way to Benchmark Quantum Controllers
      A framework for evaluating quantum control solutions
  • Company
    • left
      • About Us
      • Careers
      • Press Releases
      • In the Media
      • Events
    • QM and NVIDIA Integration
      QM and NVIDIA to Power Quantum-Accelerated Supercomputers
Get Started
All Posts
Filippo Leveraro
Filippo Leveraro
  • Jump to:

All Posts

From Quantum Control to Space Battles: OPX+ Powers Asteroids Game

July 05 | 2023 | 06 min

Real-time processing, in the context of quantum control, refers to the ability to perform computations and make adjustments to a quantum system on-the-fly, on quantum coherence timescale. It involves continuously monitoring and manipulating the system’s parameters and states in response to real-time feedback. Real-time processing is crucial in quantum systems to address the delicate nature of qubits and handle errors caused by environmental noise. It enables the implementation of control strategies that ensure the stability and accuracy of quantum operations. 

Buckle up, because I’m about to blow your minds with a real-time processing extravaganza that’ll have you laughing and learning all at once!

From Retro Gaming to Quantum: The OPX+ Adventure Begins

quantum control asteroids

Hey there, fellow quantum enthusiasts! Get ready for a mind-boggling adventure as we delve into the mind-bending world of Quantum Machines’ OPX+. This little marvel is not just any ordinary quantum control device—it’s like a quantum superhero that can control and readout quantum devices in real-time!

But wait, there’s more! Imagine playing the good old retro game, Asteroids, but with a quantum twist! With the OPX+ and its unique Pulse Processing Unit (PPU) and the super-cool and easy Python embedded pulse-level language called QUA, we can take this game to a whole new dimension!

In fact, how do you even know that you can program your quantum controller, if you haven’t coded a game on it? So sit back, relax and let’s embark on an intergalactic journey with Quantum Machines’ OPX+. We will be combining the forces of quantum magic and gaming nostalgia in one mind-blowing experience.

Empowering Quantum Exploration: RWTH Aachen Embraces the Power of OPX+

The Quantum Technology Group at RWTH Aachen recently got their hands on the OPX+, our all-in-one quantum controller renowned for its unparalleled real-time processing abilities. Within a matter of days, the students not only familiarized themselves with QUA, Quantum Machines’ intuitive quantum pulse-level programming language, but also began experimenting with it.

Paul Surrey, a Ph.D. student at JARA IQI / RWTH Aachen, wasted no time and started exploring the capabilities of QUA. To truly grasp the power of OPX+’s real-time processing capabilities, he chose an unconventional approach—immersing himself in a video game experience. Remarkably, within a mere two days of receiving the OPX+, Paul embarked on this exciting adventure.

Picture this: Paul, an excellent student with an insatiable thirst for knowledge, stumbled upon a quantum treasure chest called QUA. Not only did his learning process hit ludicrous speed, but he also gained the superpower to effortlessly bring his most audacious ideas to life. No more banging his head against the wall with FPGA programming—Paul’s dreams were now just a pseudocode away from becoming reality!

And what did Paul do with this newfound quantum jewel? He set his sights on programming Asteroids, the ultimate retro game of galactic chaos. But here’s the kicker: Paul skipped the boring technical gibberish and went straight for the actual stuff. He simplified the task to the essentials: game logic, user input, and plotting the output. No time wasted on tedious lab setups or mind-numbing details. Thanks to the incredible OPX+, scientists like Paul can focus on the physics realm while leaving the rest to this magnificent quantum sidekick.


Paul Surrey

The QUA API allows for programming the OPX’s FPGA easily and with very little overhead within Python. – Paul Surrey

JARA institute

 


Unlocking Asteroids on OPX+

Alright, folks, let’s dive headfirst into the nitty-gritty steps of setting up Asteroids on the OPX with an oscilloscope.  In order to generate 2D images, Paul utilized the I/Q output of the OPX without the need for an I/Q modulator (such as QM’s Octave). Instead, he directly connected the I/Q output to two inputs of an oscilloscope, which can then effectively display these two channels in an XY plot. It’s like creating art with quantum paintbrushes.

But hey, what about the game controls, you ask? In order to facilitate the game controls with only two input channels, Paul devised a method where he organized the four physical inputs into two groups by utilizing diodes. So, there you have it.

OPX

Paul’s setup with QM’s OPX+, a scope, and the controller.

Revealing Real-Time Processing Potential

Alright, now it’s time to witness the mind-blowing elegance of game programming with Paul’s code as our guiding light. Get ready for QUA’s Math API, the superhero of mathematical functions capable of pulling off some serious quantum magic on the OPX+. It’s like having a quantum-powered calculator on steroids. Let’s focus on the important stuff—the game functions. With QUA by our side, it’s a piece of cake. We’ve got this awesome function called assign(), and it’s the quantum equivalent of snapping your fingers and making things happen. It’s like having a remote control for asteroids. Want them to move? No problem! Just assign some new positions, and voilà, they’re dancing around the screen.

assign(asteroids_y[j],asteroids_y[j]+Math.sin2pi(asteroids_a[j])*v_asteroid*dt)

Similarly, the ship’s position and velocity follow a simple set of rules. The ship’s position is updated through a translation given by the product of its speed and time, while its speed is determined by the value of the fixed variable ui_forward, which is filled with either -1 or 1 based on user input and the variable ship_acceleration, which dictates the desired rate of change in the ship’s velocity. The same applies for the rays shot by the ship

assign(ship_x, ship_x+ship_vx*dt) 
assign(ship_vx, ship_vx+Math.cos2pi(ship_a)*ui_forward*ship_acceleration*dt) 
assign(rays_x[i], rays_x[i]+Math.cos2pi(rays_a[i])*v_ray*dt)

Lastly, collisions between rays and asteroids are determined through a straightforward distance calculation. If the calculated distance is less than the radius of the asteroid, a boolean variable is toggled, indicating a collision, and subsequently eliminating the asteroid.

with if_(distance < R_asteroid):  
assign(hit, True)

The process was remarkably straightforward, wasn’t it? Let the OPX+ to handle the remaining tasks, enabling you to simply tap the play button and embark on your journey.

Embrace Paul’s Journey, Unleash the Potential of OPX+, and Share Your Experience with Us

Paul, the coding maestro, accomplished the unthinkable—he whipped up an entire Asteroids game on QM’s OPX+ quantum controller in just two measly days.

But let’s not forget our other hero—the OPX+! This mind-bending contraption is like a genie in a bottle, granting Paul the power to bend quantum reality to his will. With its extraordinary flexibility, lightning-fast real-time processing, and programming made so easy, the OPX+ proved to be the ultimate wingman in Paul’s coding adventure.

So brace yourselves for more jaw-dropping, intuitive, and downright creative implementations with QM’s control platform. The quantum revolution has only just begun, and we are leading the charge together with you!

So, don’t hesitate, and send us your amazing programs right away!

We promise to follow up on the most incredible ideas here. Only one question remains: can it run Crysis?

Filippo Leveraro

Filippo Leveraro

Filippo is a graduate student in Physics at the Niels Bohr Institute in Copenhagen, previously working on computational astrophysics and now fully dedicated to Quantum Information. At Quantum Machines, he actively supports his love for Quantum Technologies and science communication by managing the scientific content. When he's away from the office, he can be found hiking, or skiing in the Alps, all while enjoying the refreshing taste of an Aperol Spritz.

Never miss a Quark!
Sign up for the Newsletter

Recommended Articles

Revolutionizing Single-Spin Detection with ESR Spectroscopy and Advanced Quantum Control
September 19 | 2023 | 04 min

Electron Spin Resonance (ESR) spectroscopy is a powerful technique used to study the ...

Read More
Welcome OPX1000 – The Most Advanced Quantum Control Solution!
August 29 | 2023 | 05 min

We’re thrilled to announce our newest, ultra-high speed quantum controller, OPX1000. We’ve ...

Read More
quantum control
Quantum Control Made Easier: Turbocharging OPX+ with QOP V2.2
August 01 | 2023 | 05 min

The world of quantum computing continues to evolve rapidly, and Quantum Machines is at the ...

Read More

Request a Demo


Let’s Keep in Touch

Subscribe to Quantum Machines news,
product updates, events, and more

  • Product
    • CRYOGENIC CONTROL SYSTEMS
      • QCage
      • QBoard
      • QFilter
    • QUANTUM CONTROL SYSTEMS
      • OPX+
      • Octave
      • QDAC
      • QBox
  • Solutions
    • USE CASES
      • Advanding Quantum Research
      • Quantum Computing at Scale
      • Quantum for HPC
      • Quantum Sensing
      • Quantum Networks
    • QUBIT TYPES
      • NV & Other Defect Centers
      • Superconducting Qubits
      • Neutral Atoms
      • Quantum Dots
  • Technology
    • Pulse Processing Unit
    • QUA
  • Company
    • About Us
    • Careers
    • Press
    • Contact Us
  • Learning Center
    • Blog
    • Presentation
    • Events
    • FAQ
    • Video
    • White Paper
    • Workshop

© Q.M Technologies Ltd. (Quantum Machines) — All Rights Reserved

Privacy Policy Terms of Use

Take the Next Step

Have a specific experiment in mind and wondering about the best quantum control and electronics setup?

Talk to an Expert

Want to see what our quantum control and cryogenic electronics solutions can do for your qubits?

Request a Demo

We use cookies to help personalize content, tailor and measure ads, and provide a safer experience. By continuing to use this website you consent to the use of the cookies in accordance with our Cookie Policy.

Accept More Info
 Twitter
 Facebook
 WhatsApp
 Reddit
 Telegram
 LinkedIn
 Email