Quellcode durchsuchen

Anders and briegel in javascript

master
Pete Shadbolt vor 8 Jahren
Ursprung
Commit
f2f65ebeb4
19 geänderte Dateien mit 181 neuen und 195 gelöschten Zeilen
  1. +113
    -0
      server/anders_briegel.js
  2. +9
    -3
      server/api.js
  3. +0
    -4
      server/client.py
  4. +0
    -38
      server/client2.py
  5. +0
    -0
      server/curve.js
  6. +0
    -0
      server/graph.js
  7. +5
    -0
      server/grid.js
  8. +26
    -0
      server/index.html
  9. +0
    -0
      server/interaction.js
  10. +0
    -0
      server/libs.js
  11. +8
    -2
      server/main.js
  12. +0
    -0
      server/materials.js
  13. +15
    -3
      server/server.py
  14. +0
    -8
      server/static/grid.js
  15. +0
    -47
      server/static/main.css
  16. +0
    -54
      server/static/poll.js
  17. +5
    -0
      server/tables.js
  18. +0
    -36
      server/templates/index.html
  19. +0
    -0
      server/three.js

+ 113
- 0
server/anders_briegel.js Datei anzeigen

@@ -0,0 +1,113 @@
var ngbh = {};
var vops = {};
var meta = {};

function add_node(node, m) {
ngbh[node] = {};
vops[node] = clifford.hadamard;
meta[node] = m ? m : {};
}

function add_nodes(nodes) {
nodes.forEach(add_node);
}

function add_edge(a, b) {
ngbh[a][b] = true;
ngbh[b][a] = true;
}

function add_edges(edges) {
edges.forEach(function(e) {
add_edge(e[0], e[1]);
});
}

function del_edge(a, b) {
delete ngbh[a][b];
delete ngbh[b][a];
}

function has_edge(a, b) {
return Object.prototype.hasOwnProperty.call(ngbh[a], b);
}

function toggle_edge(a, b) {
if (has_edge(a, b)) {
del_edge(a, b);
} else {
add_edge(a, b);
}
}

function get_swap(node, avoid) {
for (var i in ngbh[node]) {
if (i != avoid) {return i;}
}
return avoid;
}

function remove_vop(node, avoid) {
var swap_qubit = get_swap(node, avoid);
var decomposition = decompositions[vops[node]];
for (var i=decomposition.length-1; i >=0; --i) {
var v = decomposition[i];
local_complementation(v == "x" ? a : swap_qubit);
}
}

function local_complementation(node) {
var keys = Object.keys(ngbh[node]);
for (var i=0; i < keys.length; ++i) {
for (var j=i+1; j < keys.length; ++j) {
toggle_edge(keys[i], keys[j]);
}
vops[i] = times_table[vops[keys[i]]][sqz_h];
}
vops[node] = times_table[vops[node]][msqx_h];
}

function act_local_rotation(node, operation) {
var rotation = clifford[operation];
vops[node] = times_table[rotation][vops[node]];
}

function act_hadamard(node){
act_local_rotation(node, 10);
}

function is_sole_member(node, group){
return group.length == 1 && group[0] == node;
}

function act_cz(a, b){
if (is_sole_member(ngbh[a], b)) {
remove_vop(a, b);
}
if (is_sole_member(ngbh[b], a)) {
remove_vop(b, a);
}
if (is_sole_member(ngbh[a], b)) {
remove_vop(a, b);
}
var edge = has_edge(a, b);
var new_state = cz_table[edge ? 1 : 0][vops[a]][vops[b]];
vops[a] = new_state[1];
vops[b] = new_state[2];
if (new_state[0] != edge){
toggle_edge(a, b);
}
}


function log_graph_state() {
console.log(vops);
console.log(ngbh);
}

add_node(0);
add_node(1);
act_local_rotation(0, 10);
act_local_rotation(1, 10);
act_cz(0, 1);
log_graph_state();

server/poll.js → server/api.js Datei anzeigen

@@ -1,5 +1,12 @@
function poll() {
var ws = new WebSocket("ws://localhost:5001");
var ws;

function add_node(node){
data = {"method": "add_node", "node": node};
ws.send(JSON.stringify(data));
}

function connect_to_server() {
ws = new WebSocket("ws://localhost:5001");
ws.onopen = function()
{
console.log("Connected to server.");
@@ -17,5 +24,4 @@ function poll() {
};
}

window.onload = poll;


+ 0
- 4
server/client.py Datei anzeigen

@@ -1,4 +0,0 @@
from abp import VisibleGraphState

s = VisibleGraphState()
s.add_node(0)

+ 0
- 38
server/client2.py Datei anzeigen

@@ -1,38 +0,0 @@
import abp
import atexit
import json
from websocket import create_connection

class ServedState(abp.GraphState):
def __init__(self):
abp.GraphState.__init__(self)
self.ws = create_connection("ws://localhost:5001")
atexit.register(self.ws.close)
self.send("clear")

def send(self, method, *args, **kwargs):
kwargs.update({"method":method})
self.ws.send(json.dumps(kwargs))

def add_node(self, node):
abp.GraphState.add_node(self, node)
self.send("add_node", node = node)

def add_edge(self, start, end):
abp.GraphState.add_edge(self, start, end)
self.send("add_edge", start = start, end = end)

def del_edge(self, start, end):
abp.GraphState.del_edge(self, start, end)
self.send("del_edge", start = start, end = end)

def del_edge(self, start, end):
abp.GraphState.del_edge(self, start, end)
self.send("del_edge", start = start, end = end)


if __name__ == '__main__':
s = ServedState()
s.add_node(0)
s.add_node(1)
s.add_edge(0,1)

server/static/curve.js → server/curve.js Datei anzeigen


server/static/graph.js → server/graph.js Datei anzeigen


+ 5
- 0
server/grid.js Datei anzeigen

@@ -0,0 +1,5 @@
//TODO Move to THREE.gridhelper
// Make a grid
function makeGrid(side, n, color) {
return grid;
}

+ 26
- 0
server/index.html Datei anzeigen

@@ -4,9 +4,35 @@
<head>
<meta charset="utf-8">
<title>abp</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1" />
<link rel="stylesheet" href="main.css">
</head>

<body>
<script type="text/javascript" src="three.js"></script>
<script type="text/javascript" src="libs.js"></script>
<script type="text/javascript" src="materials.js"></script>
<script type="text/javascript" src="poll.js"></script>
<script type="text/javascript" src="api.js"></script>
<script type="text/javascript" src="curve.js"></script>
<script type="text/javascript" src="tables.js"></script>
<script type="text/javascript" src="anders_briegel.js"></script>
<script type="text/javascript" src="main.js"></script>
<img id="ball" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AMSEwYRRarOuwAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAA2ySURBVHja5VtriCRHHf9VVT+q59E7Ozt7t3tmk7C53KkxUcQv+eIDRfEVRAyoBFGToIh+UVQEURAFQY0YEAkGJEIEISoqvgJCDFGJRiUxusZLPM+93N7uze7tvLqne6qr/ZCptqauenb2di8IaWh63l3/3//3f9eQPM/xQj4oXuDHCx4A5/m4ye7urn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oAEgBLAEIL7xRoRhCMaYGsEXm7P1Q+3xU9coilB/7DH8B8BFAF1KAUrhum6xhd7zPHieNyG02kushFbv6xut1DbbKwaADQwKoKJdTfsbAJAA+pqP2R2/VkxyxtpTW+eUkGpzpWKEP2aIDpS+3U6165+f/w6Pz8PaKWI2RBST9H3C+p8rfN+HEGKC+sph/hckywMtfS8qcQAAAABJRU5ErkJggg=="/
style=display:none;>

<div id=infoholder class=hidden>
</div>

<div id=pallette>
<ul>
<li>add_qubit</li>
<li>delete_qubit</li>
<li>hadamard</li>
<li>cz</li>
<li>clear</li>
</ul>
</div>

</body>
</html>

server/static/interaction.js → server/interaction.js Datei anzeigen


server/static/libs.js → server/libs.js Datei anzeigen


server/static/main.js → server/main.js Datei anzeigen

@@ -13,7 +13,9 @@ window.onload = init;
// Clear the whole scene
function makeScene() {
var myScene = new THREE.Scene();
var grid = makeGrid(10, 10, "lightgray");
var grid = new THREE.GridHelper(20, 2);
grid.rotation.x = Math.PI/2;
grid.setColors(0xdddddd, 0xeeeeee);
myScene.add(grid);
return myScene;
}
@@ -48,6 +50,10 @@ function init() {
document.querySelector("body").appendChild(renderer.domElement);
window.addEventListener("resize", onWindowResize, false);

renderer.domElement.addEventListener("click", function (evt) {
add_node(0);
});

// Time to load the materials
loadMaterials();

@@ -64,6 +70,6 @@ function init() {
// Run
scene = makeScene();
controls.addEventListener("change", render);
poll();
connect_to_server();
render();
}

server/static/materials.js → server/materials.js Datei anzeigen


+ 15
- 3
server/server.py Datei anzeigen

@@ -1,12 +1,24 @@
from websocket_server import WebsocketServer
import threading
import abp
import json

clients = []
#state = "awd"
state = abp.VisibleGraphState()

def compute_diff(decoded_message):


def new_message(client, server, message):
print "Sending message ..."
server.send_message_to_all(message)
decoded_message = json.loads(message)
if "diff" in decoded_message:
server.send_message_to_all(message)
elif "method" in decoded_message:
message = compute_diff(decoded_message)
server.send_message_to_all(message)
else:
print "Could not interpret message"


def new_client(client, server):
print "Client {} connected.".format(client["id"])


+ 0
- 8
server/static/grid.js Datei anzeigen

@@ -1,8 +0,0 @@
//TODO Move to THREE.gridhelper
// Make a grid
function makeGrid(side, n, color) {
var grid = new THREE.GridHelper(20, 2);
grid.rotation.x = Math.PI/2;
grid.setColors(0xdddddd, 0xeeeeee);
return grid;
}

+ 0
- 47
server/static/main.css Datei anzeigen

@@ -1,47 +0,0 @@
html, body { margin: 0; padding: 0; overflow: hidden; font-size: 10pt; font-family: "courier new"; }
#infoholder {
background: black;
color:white;
padding: 5px;
margin:0px;
position: absolute;
top:5px;
left:5px;
font-family:"courier new";
text-align: center;
font-size:10pt;
height:15px;
border-radius:3px;
}

#pallette {
background-color: black;
/*border-radius:3px;*/
color:white;
padding: 10px;
font-family:"courier new";
position: absolute;
top: 10px;
right: 10px;
font-size: 9pt;
}

ul {
list-style-type: none;
padding: 0px;
margin: 0px;
}

.visible {
visibility: visible;
opacity: 1;
transform: scale(1);
transition: opacity .08s linear, transform .08s linear;
}

.hidden {
visibility: hidden;
opacity: 0;
transform: scale(.5);
transition: visibility .08s, opacity .08s linear, transform .08s linear;
}

+ 0
- 54
server/static/poll.js Datei anzeigen

@@ -1,54 +0,0 @@
function poll() {
var xhr = new XMLHttpRequest();
xhr.timeout = 60000;

xhr.onload = function() {
var state = JSON.parse(xhr.responseText);
updateScene(state);
poll();
};

xhr.onerror = function(e){
poll();
};

xhr.open("GET", "/state", true);
xhr.setRequestHeader('Content-Type', 'application/json; charset=UTF-8');
xhr.send();
}

function updateScene(state) {
if (state.needs_update === false){return;}
var oldState = scene.getObjectByName("graphstate");
scene.remove(oldState);
oldState = null;
var geometry = new THREE.Geometry();
//nodeGeometry.labels = [];
//nodeGeometry.colors = [];
for (var i in state.nodes) {
var node = state.nodes[i];
var pos = state.meta[i].pos;
var vertex = new THREE.Vector3(pos.x, pos.y, pos.z);
geometry.vertices.push(vertex);
//geometry.colors[i] = new THREE.Color(n.color);
//geometry.labels[i] = n.label;
}

var edges = new THREE.Object3D();
for (i=0; i < state.edges.length; ++i) {
var edge = state.edges[i];
var start = state.meta[edge[0]].pos;
var end = state.meta[edge[1]].pos;
var newEdge = makeEdge(start, end);
edges.add(newEdge);
}

var particles = new THREE.Points(geometry, materials.qubit);
var newState = new THREE.Object3D();
newState.name = "graphstate";
newState.add(particles);
newState.add(edges);
scene.add(newState);
render();
}

+ 5
- 0
server/tables.js
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 0
- 36
server/templates/index.html Datei anzeigen

@@ -1,36 +0,0 @@
<!DOCTYPE html>

<html lang="en">
<head>
<meta charset="utf-8">
<title>abp</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1" />
<link rel="stylesheet" href="/static/main.css">
</head>

<body>
<script type="text/javascript" src="/static/three.js"></script>
<script type="text/javascript" src="/static/libs.js"></script>
<script type="text/javascript" src="/static/materials.js"></script>
<script type="text/javascript" src="/static/poll.js"></script>
<script type="text/javascript" src="/static/grid.js"></script>
<script type="text/javascript" src="/static/curve.js"></script>
<script type="text/javascript" src="/static/main.js"></script>
<img id="ball" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AMSEwYRRarOuwAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAA2ySURBVHja5VtriCRHHf9VVT+q59E7Ozt7t3tmk7C53KkxUcQv+eIDRfEVRAyoBFGToIh+UVQEURAFQY0YEAkGJEIEISoqvgJCDFGJRiUxusZLPM+93N7uze7tvLqne6qr/ZCptqauenb2di8IaWh63l3/3//3f9eQPM/xQj4oXuDHCx4A5/m4ye7urnPx4sUbhBDXDwaDG4QQ10RRdFJK2ZJS+nmeI8/zoed5pyil5yqVyt8ZY6fDMPzH8vLy05xzeaXWRq6UD+h0OkGn03ltu92+NU3TtwohAiklsizztCsZC488z0EISQDkhJCUEJITQlJKadR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2aIDpS+3U6165+f/w6Pz8PaKWI2RBST9H3C+p8rfN+HEGKC+sph/hckywMtfS8qcQAAAABJRU5ErkJggg=="/
style=display:none;>

<div id=infoholder class=hidden>
</div>

<div id=pallette>
<ul>
<li>add_qubit</li>
<li>delete_qubit</li>
<li>hadamard</li>
<li>cz</li>
<li>clear</li>
</ul>
</div>

</body>
</html>

server/static/three.js → server/three.js Datei anzeigen


Laden…
Abbrechen
Speichern