, ,

My Journey Through the IBM Quantum Challenge 2024

In early June, I took part in the IBM Quantum Challenge 2024, a deep dive into the world of quantum computing using IBM’s Qiskit framework. This challenge spanned a few days, from June 5th to June 10th, and I dedicated June 5th to 7th to explore and conquer the challenges it posed. I also delved into the IBM Quantum Education platform to gain more knowledge about quantum computing.

Getting Started with Google Colab

To begin my journey, I set up my working environment on Google Colab. Colab provides a seamless, cloud-based interface for running Jupyter notebooks, which was perfect for tackling the challenge labs without needing to configure anything locally.

Understanding the Challenge Structure

The IBM Quantum Challenge 2024 was designed as a series of guided labs, presented in Jupyter notebook format. Each lab contained a blend of instructional content and practical coding exercises aimed at enhancing our understanding of quantum computing principles and applications using Qiskit. The challenge encouraged participants to progress through the labs in sequence to build on foundational concepts before advancing to more complex topics.

Diving into the Labs

Lab 0: Setting Up and Basics

The first step was Lab 0, which focused on setting up the environment and introducing the basics of Qiskit. This introductory lab was crucial as it ensured that my Google Colab setup could successfully run the required code. It covered fundamental operations like creating a quantum circuit and running a basic simulation. This foundational knowledge was pivotal as I prepared for more challenging labs.

Challenge 0: Generating a Bell State

The highlight of Lab 0 was the first coding challenge: creating a Bell state. A Bell state is a fundamental quantum state that demonstrates entanglement between two qubits. Here’s how I approached it:

  • Mapping Circuits and Operators: This step involved constructing a quantum circuit that could generate a Bell state. We started by creating a new quantum circuit with two qubits. I applied a Hadamard gate to the first qubit to create a superposition, and then used a CNOT gate to entangle the two qubits.
  • Defining Observables: To verify that the circuit behaved as expected, we defined a set of Pauli operators to measure the state of our qubits. These observables included combinations of identity (I) and Pauli-X (X) or Pauli-Z (Z) operators applied to different qubits.

Completing Lab 0 and successfully generating a Bell state was an exciting start. It provided a solid foundation and a confidence boost as I moved forward to tackle the subsequent, more complex labs.


Lab 1: Quantum Circuits and Gates

Lab 1 delved into the construction and manipulation of quantum circuits using Qiskit. I learned how to apply various quantum gates, such as the Hadamard gate to create superpositions and the CNOT gate to establish entanglement between qubits. These exercises not only reinforced my understanding of fundamental quantum mechanics but also demonstrated how these principles are implemented in code. I spent significant time experimenting with different gate combinations and observing their effects on qubit states.

In Exercise 1, I tackled the creation of a Bell state circuit. This involved setting up a quantum circuit that generates entangled qubits, which is fundamental in quantum computing. Following the instructions provided, I applied specific gates to create this entangled state.

(example of challenge accomplished, I will not publish other challenges to avoid sharing answers online)

Moving on to Exercise 2, I explored state sampling using Qiskit’s StatevectorSampler. By running the circuit multiple times and collecting statistics on the final qubit measurements, I gained insights into the distribution of states produced by our circuit.

Exercise 3 was about constructing a W-state circuit. This required following step-by-step instructions to build a circuit that entangles three qubits. Similar to the Bell state, the W state is another form of entanglement used in quantum computations.

In Exercise 4, I set up a parameterized ansatz circuit using Qiskit’s TwoLocal circuit. This involved parameterizing the circuit to prepare trial wave functions suitable for variational quantum algorithms or classification circuits for machine learning.

Transpiling the circuit was the focus of Exercise 5. By optimizing the circuit for execution on a simulated or real quantum device, I ensured it conforms to the backend’s native basis gates, qubit connectivity, and other specifications.

While I tried to do Exercises 6 and 7 from Lab 1, I found these exercises quite demanding. They required a depth of knowledge that I was still developing. Exercise 6 introduced me to defining a cost function for our VQE algorithm, which represents the energy of our parameterized quantum state with respect to a given Hamiltonian. This concept was challenging but crucial for understanding quantum chemistry and optimization problems. Exercise 7 involved using Qiskit’s new primitives, EstimatorV2 and SamplerV2, along with local testing mode and Sessions. Despite the difficulty, I learned a tremendous amount about these advanced topics. Though I struggled, I was proud to make a start in such a complex and intimidating field as quantum computing.

Community and Support

The IBM Quantum Challenge fostered a supportive and collaborative environment. Despite being an individual challenge, there were ample opportunities to connect with other participants and seek help through Discord channels. Each lab had dedicated support channels where participants could discuss challenges and seek guidance. Mentors were available to provide insights and answer questions without giving away the solutions. This community aspect significantly enriched my learning experience.


Conclusion:

Participating in the IBM Quantum Challenge 2024 was a transformative experience, providing an in-depth exploration of quantum computing through IBM’s Qiskit framework.

Key Takeaways:

  • Challenge Structure: The IBM Quantum Challenge, held from June 5th to June 10th, consisted of a series of guided labs presented in Jupyter notebook format. Each lab combined instructional content with practical coding exercises designed to enhance our understanding of quantum computing principles and applications using Qiskit.
  • Getting Started: I set up my working environment on Google Colab, a cloud-based interface for running Jupyter notebooks. This setup was ideal for tackling the challenge labs without needing to configure anything locally.

Lab Highlights:

  • Lab 0: Setting Up and Basics: This introductory lab focused on setting up the environment and introducing the basics of Qiskit. It covered fundamental operations such as creating a quantum circuit and running a basic simulation. The highlight was generating a Bell state, which provided a solid foundation for more complex labs.
  • Lab 1: Quantum Circuits and Gates: This lab delved into the construction and manipulation of quantum circuits using Qiskit. I learned to apply various quantum gates, such as the Hadamard and CNOT gates, and engaged in exercises like creating a Bell state circuit, exploring state sampling, constructing a W-state circuit, and setting up a parameterized ansatz circuit. These exercises reinforced my understanding of quantum mechanics and its implementation in code.

Challenges and Insights:

  • Complex Exercises: Exercises 6 and 7 from Lab 1 were particularly challenging, requiring a deeper understanding of quantum computing concepts. Exercise 6 introduced defining a cost function for the VQE algorithm, and Exercise 7 involved using Qiskit’s new primitives, EstimatorV2 and SamplerV2, along with local testing mode and Sessions. Although demanding, these exercises provided invaluable insights into advanced topics in quantum computing.

Community and Support:

  • Collaborative Environment: The IBM Quantum Challenge fostered a supportive and collaborative environment. Participants could connect through Discord channels dedicated to each lab, where they could discuss challenges and seek guidance. Mentors were available to provide insights and answer questions, enriching the learning experience.

Reflection and Future Steps: Reflecting on my journey through the IBM Quantum Challenge 2024 fills me with a profound sense of accomplishment. The challenges were formidable and demanded a depth of knowledge beyond my initial expectations. Conquering Labs 0 and 1 stands as a testament to my dedication and passion for quantum computing, and while I faced obstacles, my unwavering motivation propelled me forward.

Although Exercises 6 and 7 were particularly challenging, they provided invaluable insights and a solid foundation for further exploration. I am proud of the progress I made, even in a field as complex and daunting as quantum computing. This experience has not only deepened my understanding but also boosted my confidence to continue learning.

Moving forward, I am eager to continue my exploration, armed with the invaluable insights gained from this experience. While the road ahead may be challenging, I am undaunted, fueled by the boundless potential of quantum computing and the promise of new discoveries that await. The IBM Quantum Challenge 2024 was just the beginning of my journey, and I am excited about the future steps in this fascinating field.


About Me

I’m Romane Devezeaux de Lavergne, a Cybersecurity student with a global perspective, currently enrolled in a Cybersecurity bachelor’s program at Howest University of Applied Sciences, Belgium. Based in Paris for my internship at Apside, I’ve had the opportunity to engage in another international experience as I recently completed an exchange semester at Northwest Missouri State University, USA.

My links