This file contains 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
$ cargo build | |
Compiling libc v0.2.51 | |
Compiling liberasurecode v1.0.2 (/Users/hiroki_kobayashi/srcview/rust-liberasurecode) | |
error: failed to run custom build command for `liberasurecode v1.0.2 (/Users/hiroki_kobayashi/srcview/rust-liberasurecode)` | |
process didn't exit successfully: `/Users/hiroki_kobayashi/srcview/rust-liberasurecode/target/debug/build/liberasurecode-03e82565d13e637a/build-script-build` (exit code: 101) | |
--- stdout | |
cargo:rerun-if-changed=build.rs | |
--- stderr | |
+ BUILD_DIR=/Users/hiroki_kobayashi/srcview/rust-liberasurecode/target/debug/build/liberasurecode-8278567ad8c5b89e/out/build |
This file contains 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
# -*- coding: utf-8 -*- | |
# Reference: https://qiita.com/upura/items/3c10ff6fed4e7c3d70f0 | |
import pandas as pd | |
import numpy as np | |
import csv as csv | |
from sklearn.preprocessing import PowerTransformer | |
from sklearn.pipeline import Pipeline | |
train = pd.read_csv("train.csv") |
This file contains 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
B1: 状態が直交しているので頑張ればできる。頑張ってpsi0を純粋状態に変換するとpsi1はそれと直交する別の状態になるので区別できる | |
PrepareArbitraryState君マジ神 | |
B2: 難しい | |
C2: 2n qubits 使うとTLEなので3n/2 qubitでやる(つらい) | |
C3: ライブラリを使うのは甘え、自分で書け(TLEつらい) | |
D2: 下位ビットから見ていって適切なポイントで全H | |
D6: Givens transformationを連鎖させればよい。IntegerIncrementLEとかを使うと遅いので自前でDecrementを実装&&ControlledOnBitStringでやる |
This file contains 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
FROM ubuntu:trusty | |
MAINTAINER koba-e964-experimental | |
ENV UBUNTU_VER trusty | |
ENV LLVM_TOOLCHAIN_VER 6.0 | |
RUN apt-get update && \ | |
apt-get install -y software-properties-common && \ | |
apt-add-repository -y "ppa:ubuntu-toolchain-r/test" && \ |
This file contains 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
rustup run nightly rustc --test -O pollard_rho.rs | |
./pollard_rho --bench |
This file contains 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
[Event "Vs. Computer"] | |
[Site "Chess.com"] | |
[Date "2018.07.17"] | |
[Round "2"] | |
[White "koba-e964"] | |
[Black "Computer Level 4"] | |
[Result "1-0"] | |
[ECO "B01"] | |
[WhiteElo ""] | |
[BlackElo ""] |
This file contains 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
[Event "Vs. Computer"] | |
[Site "Chess.com"] | |
[Date "2018.06.17"] | |
[Round "1"] | |
[White "koba-e964"] | |
[Black "Computer Level 5"] | |
[Result "0-1"] | |
[ECO "B40"] | |
[WhiteElo ""] | |
[BlackElo ""] |
This file contains 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
[Event "Vs. Computer"] | |
[Site "Chess.com"] | |
[Date "2018.06.17"] | |
[Round "1"] | |
[White "koba-e964"] | |
[Black "Computer Level 5"] | |
[Result "0-1"] | |
[ECO "C25"] | |
[WhiteElo ""] | |
[BlackElo ""] |
This file contains 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
asm-define even28 (x29: intptr):int { | |
let t_26: int = ld even28 8 1 in | |
let f_27: int = ld even28 4 1 in | |
let i14_38: int = set 0 in | |
ret if le x29 i14_38 then | |
let i15_39: int = set 0 in | |
ret if le i15_39 x29 then | |
ret set t_26 | |
else | |
let i16_41: int = set 1 in |
This file contains 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
[Event "Live Chess"] | |
[Site "Chess.com"] | |
[Date "2018.05.06"] | |
[Round "?"] | |
[White "maroy1980"] | |
[Black "koba-e964"] | |
[Result "0-1"] | |
[WhiteElo "1013"] | |
[BlackElo "1115"] | |
[ECO "C65"] |