Skip to content

Instantly share code, notes, and snippets.

Avatar
😇
私は生きている

Ochi Yuma Chizuchizu

😇
私は生きている
View GitHub Profile
View kame.py
import turtle
name1 = ''
name2 = ''
kame1 = turtle.Turtle()
kame1.shape('turtle')
kame1.speed(1)
kame1.color('black', 'grey')
kame1.pensize(0)
View add_sub_func.c
#include <stdio.h>
int AND(int a, int b) {
return a * b;
}
int OR(int a, int b) {
return (a + b + 1) / 2;
}
View eals_experience.py
from amplify import IsingPoly, IsingMatrix, gen_symbols, sum_poly, BinaryPoly
from amplify import Solver, decode_solution
from amplify.client import FixstarsClient
import numpy as np
import pandas as pd
import scipy.sparse as sps
from itertools import combinations
from tqdm import tqdm
from eals import ElementwiseAlternatingLeastSquares
from sklearn.metrics import roc_auc_score, accuracy_score
View shor-algorithm.py
import cirq
import math
import fractions
import random
s = 15
L = s.bit_length()
sq_s = int(math.sqrt(s)) + 1
num_workbit = 1
View grover-algorithm.py
import cirq
# Number of qubits n.
nqubits = 3
# Grover's operatorを何回作用させるか
num_loop = 2
# 正解のbit
target_bits = [
1, 0, 0
]
View 3-dim-streamlit-app.py
# streamlit run app.py
import streamlit as st
import numpy as np
from amplify import *
from amplify.client import FixstarsClient
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import time
import json
View 3-dim-packing-1.py
import numpy as np
from amplify import *
from amplify.client import FixstarsClient
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import json
from mpl_toolkits.mplot3d import Axes3D
# 縦、横、奥行き
h, w, d = 8, 8, 8
View flax-mnist-1.py
from flax import linen as nn
from flax import optim
import jax
import jax.numpy as jnp
import numpy as np
import tensorflow as tf
import os
# https://jax.readthedocs.io/en/latest/gpu_memory_allocation.html
# OOMを防ぐ
View リアルタイム温度検知_v2.py
import cv2
import time
import busio
import board
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
import adafruit_amg88xx
i2c_bus = busio.I2C(board.SCL, board.SDA)
View リアルタイム温度検知.py
import cv2
import time
import busio
import board
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
import adafruit_amg88xx
i2c_bus = busio.I2C(board.SCL, board.SDA)