- CNN: My_Resnet
- RNN: My_Att_Seqnet
- RL: My_Dqnnet
- Time Series: My_Stock_Predictor
- CNN: My_Heatmap
| """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() |
| <div> | |
| <button class="pay-button">Pay</button> | |
| <div id="status"></div> | |
| </div> | |
| <script type="text/javascript"> | |
| window.addEventListener('load', async () => { | |
| if (window.ethereum) { | |
| window.web3 = new Web3(ethereum); | |
| try { | |
| await ethereum.enable(); |
| import { useState } from 'react'; | |
| import { useGamepads } from 'react-gamepads'; | |
| import './App.css'; | |
| const buttonLabels = [ | |
| "A", | |
| "B", | |
| "X", | |
| "Y", | |
| "L1", |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go directory by: