Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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