zyBooks - Chapter 3 (User-Defined Functions) - Participation and Challenge activities.
Superdense Coding Simulation
Write a C++ program to simulate quantum superdense coding for Alice to send a 2-bit value to Bob.
Use a class like Q2 (Q2/ or Q2.cc) for the two-qubit state and operations.
The main program must generate a random 2-bit value 0...3
to be encoded and show the state before and after encoding and decoding.
Upload source files - individual files or archive
Programs must compile with no warnings or errors using:
g++ -std=c++17 -pedantic -Wall
Each source file must start with a comment containing your name and a description.
References
[1] wikipedia.org/wiki/Superdense_coding - protocol, encoding, decoding
[2] Insecure Superdense Coding - summary and examples (n=2)