The goal is to build a program to write a hello world message and show quantum superposition & entanglement scenarios. The first step is to start with a qubit in a basis state |0>. Operations are performed on the qubit and the result is measured.
Superposition is related to quantum mechanics concepts that allow quantum interference. It is a wave property which can be extrapolated to probability. Adding of two waves with amplitude and phase is called a superposition. Two waves can be added and subtracted based on the phase. Quantum interference is caused when two quantum wave functions are added. Superpositions happen when quantum wave functions with complex coefficients are added. Superposition can be described as possibility of electron being at different position at the same time or different direction in spin.
Entanglement is a superposition of two or more particles. This represents a quantum state which consists of a special subset of all measurements of a particle...