I hereby claim:
- I am ssghost on github.
- I am siegel_seele (https://keybase.io/siegel_seele) on keybase.
- I have a public key ASBMmW3WC-f-cWdXQt-u0_ZCG49EVnIM4HCIqCnJwBwr1Qo
To claim this, I am signing this object:
#Configuration Proxy | |
#Git | |
git config --global http.proxy http://<username>:<password>@<proxy-port> | |
git config --global https.proxy http://<username>:<password>@<proxy-port> | |
library(tidyverse) | |
library(gganimate) | |
NUMPLAYERS = 45 | |
ROUNDS = 5000 | |
INITWEALTH = 45 | |
#initialize the bank | |
#columns wealths of the NUMPLAYERS players | |
#rows show wealths of each of the ROUNDS ticks of the clocks |
I hereby claim:
To claim this, I am signing this object:
FROM ubuntu:18.04 | |
# Install python and utils | |
RUN apt-get update && apt-get install -y python3-pip curl unzip \ | |
libosmesa-dev libglew-dev patchelf libglfw3-dev | |
# Download mujoco | |
RUN curl https://www.roboti.us/download/mjpro150_linux.zip --output /tmp/mujoco.zip && \ | |
mkdir -p /root/.mujoco && \ | |
unzip /tmp/mujoco.zip -d /root/.mujoco && \ |
import networkx as nx | |
import dwave_networkx as dnx | |
import matplotlib.pyplot as plt | |
from dwave.system.samplers import DWaveSampler | |
from dwave.system.composites import EmbeddingComposite | |
sampler = EmbeddingComposite(DWaveSampler(config_file='~/Library/Application Support/dwave/dwave.conf', solver='DW_2000Q_2_1')) | |
G = nx.Graph() | |
G.add_edges_from([(1,2),(1,4),(1,5),(2,3),(2,5),(2,7),(3,4),(3,6),(4,5),(5,6),(5,7)]) |
- Phone Number: +1-626-489-5683 (US)
- Email: shuangsong00@outlook.com
"""Demonstrates the Bernstein–Vazirani algorithm. | |
The (non-recursive) Bernstein–Vazirani algorithm takes a black-box oracle | |
implementing a function f(a) = a·factors + bias (mod 2), where 'bias' is 0 or 1, | |
'a' and 'factors' are vectors with all elements equal to 0 or 1, and the | |
algorithm solves for 'factors' in a single query to the oracle. | |
=== EXAMPLE OUTPUT === | |
Secret function: | |
f(a) = a·<0, 0, 1, 0, 0, 1, 1, 1> + 0 (mod 2) | |
Sampled results: |
from telegram import Bot | |
from threading import Timer | |
from eventlet import Timeout | |
def main(bot): | |
while True: | |
update = bot.getUpdates()[-1] | |
if update.message.text == '/start': | |
timer = Timer(60*60*24*3, post_alert, args=[bot,update]) | |
timer.start() |