dssikdar / Quantum-Computing-Mod

Quantum Software Minecraft Mod
Other
1 stars 2 forks source link

Multi-qubit gates #5

Open dssikdar opened 2 years ago

dssikdar commented 2 years ago

For multi-qubit gates, the coding/realization becomes tricky. This is fair game to work on.

dssikdar commented 2 years ago

I was thinking that since each qubit is accessed by its position, we can just concatenate their states to make a longer vector. Then, we do the similar matrix multiplication with the gate matrix (now 4x4) and return the new quantum statevector. We can then redistribute it to the corresponding qubits' states.