Quantum Error Correction, Bitflip, Qiskit, Quantum Computing, Quantum.
repetition code in order to store the initial qubit, i.e. mapping our state |ψ⟩ = a|0⟩ + b|1⟩ to the state |ψ⟩ = a|000⟩ + b|111⟩. This is an entangled state, therefore when 1 qubit is measured the outcome of the other 2 qubits is also known: # Encoding using bit flip code def encode_bit_flip(qc,