Skip to content

Instantly share code, notes, and snippets.

@Strilanc
Created October 16, 2022 22:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Strilanc/3a6d54edafec6c9521442aff0f5ef7e2 to your computer and use it in GitHub Desktop.
Save Strilanc/3a6d54edafec6c9521442aff0f5ef7e2 to your computer and use it in GitHub Desktop.
{
"name": "Virtual Lab: New Experiment",
"grid": {
"width": 13,
"height": 10,
"pieces": [
{
"coord": {
"x": 0,
"y": 1
},
"flags": 3,
"states": [
{
"type": "Mirror",
"rotation": 6
}
]
},
{
"coord": {
"x": 0,
"y": 3
},
"flags": 3,
"states": [
{
"type": "FaradayRotator",
"rotation": 3,
"polarizationRotation": 0.15555556118488312
}
]
},
{
"coord": {
"x": 0,
"y": 4
},
"flags": 3,
"states": [
{
"type": "BellPairSource",
"active": true,
"rotation": 7,
"bellState": "PsiNeg",
"wavelengths": [
"Red",
"Red"
]
}
]
},
{
"coord": {
"x": 0,
"y": 5
},
"flags": 3,
"states": [
{
"type": "FaradayRotator",
"rotation": 3,
"polarizationRotation": 0.15555556118488312
}
]
},
{
"coord": {
"x": 0,
"y": 7
},
"flags": 3,
"states": [
{
"type": "Mirror",
"rotation": 5
}
]
},
{
"coord": {
"x": 1,
"y": 4
},
"flags": 1,
"states": [
{
"type": "Comment",
"text": "Prepare",
"size": {
"x": 1,
"y": 3
}
}
]
},
{
"coord": {
"x": 4,
"y": 2
},
"flags": 1,
"states": [
{
"type": "InputSwitch",
"activeState": 1,
"randomize": true,
"name": "Referee A",
"states": [
"0",
"1"
],
"probability": 0.5
}
]
},
{
"coord": {
"x": 4,
"y": 6
},
"flags": 1,
"states": [
{
"type": "InputSwitch",
"activeState": 0,
"randomize": true,
"name": "Referee B",
"states": [
"0",
"1"
],
"probability": 0.5
}
]
},
{
"coord": {
"x": 5,
"y": 0
},
"flags": 1,
"states": [
{
"type": "Comment",
"text": "Alice",
"size": {
"x": 2,
"y": 1
}
}
]
},
{
"coord": {
"x": 5,
"y": 1
},
"flags": 3,
"states": [
{
"type": "Polarizer",
"rotation": 0,
"absorption": 1
},
{
"type": "Polarizer",
"rotation": 4,
"absorption": 1
}
]
},
{
"coord": {
"x": 5,
"y": 7
},
"flags": 3,
"states": [
{
"type": "Polarizer",
"rotation": 0,
"absorption": 1
},
{
"type": "Polarizer",
"rotation": 7,
"absorption": 1
}
]
},
{
"coord": {
"x": 5,
"y": 8
},
"flags": 1,
"states": [
{
"type": "Comment",
"text": "Bob",
"size": {
"x": 2,
"y": 1
}
}
]
},
{
"coord": {
"x": 6,
"y": 1
},
"flags": 3,
"states": [
{
"type": "Detector",
"rotation": 2,
"cartoonStyle": true,
"detectAllDirections": false
}
]
},
{
"coord": {
"x": 6,
"y": 7
},
"flags": 3,
"states": [
{
"type": "Detector",
"rotation": 2,
"cartoonStyle": true,
"detectAllDirections": false
}
]
},
{
"coord": {
"x": 10,
"y": 4
},
"flags": 3,
"states": [
{
"type": "LogicGate",
"rotation": 1,
"gateKind": "Nand"
}
]
},
{
"coord": {
"x": 11,
"y": 4
},
"flags": 3,
"states": [
{
"type": "LogicGate",
"rotation": 1,
"gateKind": "Xor"
}
]
},
{
"coord": {
"x": 11,
"y": 5
},
"flags": 1,
"states": [
{
"type": "Comment",
"text": "Check Win Rate\nClassical Limit is 75%",
"size": {
"x": 3,
"y": 1
}
}
]
},
{
"coord": {
"x": 12,
"y": 4
},
"flags": 1,
"states": [
{
"type": "Goal",
"range": [
0.25,
1
]
}
]
}
],
"wires": [
{
"src": 15,
"dst": 17,
"dst_input": 0
},
{
"src": 7,
"dst": 10,
"dst_input": 0
},
{
"src": 13,
"dst": 15,
"dst_input": 2,
"pins": [
{
"x": 10,
"y": 7.5
},
{
"x": 10,
"y": 5.5
},
{
"x": 11,
"y": 5
}
]
},
{
"src": 14,
"dst": 15,
"dst_input": 1
},
{
"src": 12,
"dst": 15,
"dst_input": 0,
"pins": [
{
"x": 10,
"y": 1.5
},
{
"x": 10,
"y": 3.5
},
{
"x": 11,
"y": 4
}
]
},
{
"src": 6,
"dst": 14,
"dst_input": 0,
"pins": [
{
"x": 9.5,
"y": 2.5
},
{
"x": 9.5,
"y": 4
}
]
},
{
"src": 7,
"dst": 14,
"dst_input": 1,
"pins": [
{
"x": 9.5,
"y": 6.5
},
{
"x": 9.5,
"y": 5
}
]
},
{
"src": 6,
"dst": 9,
"dst_input": 0
}
]
},
"version": "3"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment