Skip to content

Entanglement example#21

Open
nynzzz wants to merge 6 commits intoqbead:mainfrom
nynzzz:entanglement_example
Open

Entanglement example#21
nynzzz wants to merge 6 commits intoqbead:mainfrom
nynzzz:entanglement_example

Conversation

@nynzzz
Copy link
Contributor

@nynzzz nynzzz commented Oct 15, 2024

Using Johan's html interface, I adapt it so that I connect two Qbeads to the laptop. There are two files BLE_entanglement.ino and BLE_entanglement_2.ino which are the same, I duplicated them with the only purpose to visualise two monitors at the same time. When running the .ino file, the program asks the user in the monitor if he wants to entangle or not. If the user writes a 0, it runs as usual; if he writes a 1, then the program will ask the user if it is the first or the second qbead. Indeed, this program is only adapt it for two Qbeads. After running twice the program for two different Qbeads (so that to one of them you write a 0 to make it the Qbead 1, and on the other Qbead you write a 1 to make it the Qbead 2), you run the Html file. Clicking on the button 'Start connection', the laptop starts looking for available Bluetooth devices. It should appear QBEAD1 or QBEAD2, in any case you accept the connection. Doing the same once again (so that it should appear QBEAD2 or QBEAD1 respectively), you connect to this second device. Once the laptop is connected to these two devices, you can 'measure', which efectively is to produce a 0 or a 1 randomly. Depending on this value, the QBEAD1 is the state up or down, and the QBEAD2 is the opposite. The value 0 or 1 is sent to the two Arduinos and they are correctly received, showing the value in the monitor. This way we have 'visualised' the entangled state 1/sqrt(2)(|01>+|10>).

To improve this simulation it would be interesting that, after the Qbeads receive the value, the correspoding LED (up or down depending on the value 0 or 1) ir lighted. Additionnally, it would be interesting to visualise other entangled states, like 1/sqrt(2)(|00>+|11>). However, I lack of time to keep working on this project, so unfortunately I will not be able to keep improving this simulation. Sorry for this inconvenience.

author: Arturo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant