dssikdar / Quantum-Computing-Mod

Quantum Software Minecraft Mod
Other
1 stars 2 forks source link

Quantum States are not object-based! #2

Closed dssikdar closed 2 years ago

dssikdar commented 2 years ago

If I were to place a single block in the world, the quantum state is updated correctly as the gates are applied to it. However, if I place two qubit blocks, which are supposed to have two separate quantum states, applying a gate to one qubit changes the state globally. There is like a problem with the Class vs. Object properties as in the quantum statevector is of the class. But, the quantum statevector is a non-static variable, which means it should be an attribute of the object, not the class. If anyone wants to debug this issue, feel free to do so.

dssikdar commented 2 years ago

Can take advantage of this issue by creating a QubitRegisterBlock with each qubit as a function of a block's face (north, south, east, west, and up).

dssikdar commented 2 years ago

Let's not worry about this issue for now. Maneuvering around the problem; instead, building quantum register using block faces

dssikdar commented 2 years ago

Still need to fix this. Ask on web.