# ibm-quantum-challenge-africa-2021--solutions
### The IBM Research Lab in South Africa and Wits University have developed a quantum computing challenge showcasing how the technology can be used in the fields of medicine, finance, and logistics. With a focus on problems relevant to Africa for African learners, students, and industry members; the challenge highlights the amazing opportunities available to grow the necessary expertise and communities on the continent. Learn more at the Challenge repo.
## Lab1: Introduction and the Crop-Yield Problem.
The notebook is structured as follows:
#### 1-Initialization
#### 2-Table of Contents
#### 3-Qiskit and its parts
#### 4-Setting up the Qiskit Environment
#### 5-Quadratic Problems
Some computational problems can be formulated into quadratic equations such that the minimum of the quadratic equations is the optimal solution, if any exist. These problems are encountered in finance, agriculture, operations and production management, and economics.
Quadratic programming is also used to identify an optimal financial portfolio with minimum risk and optimizing the layout of production components in a factory to minimize the travel distance of resources. This notebook focuses on agriculture as it is a relevant application of quantum computing to problems facing the African continent. However, all of these applications share two common characteristics: the system can be modelled as a quadratic equation and the system variables may be constrained, with their values limited to within a given range.
#### 6-Crop-Yield Problem as a Quadratic Problem
To show how to solve your quadratic program using a quantum computer, we will use two algorithms to solve the crop-yield problem. It is a common need to optimize the crops and management of a farm to reduce risk while increasing profits. One of the big challenges facing Africa and the whole world is how to produce enough food for everyone. The problem here focuses not on profits but …