Skip to content

Instantly share code, notes, and snippets.

View paniash's full-sized avatar
💭
Intermittently yakshaving

Ashish Panigrahi paniash

💭
Intermittently yakshaving
View GitHub Profile
@paniash
paniash / qello_world.py
Last active August 2, 2022 06:50
Hello world in Qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from math import sqrt
psi = [1/sqrt(2), 1/sqrt(2)]
def prepare(qc, psi):
qc.initialize(psi, [0]) # [0] indicates the zeroth index (or) the first qubit
# State preparation
###########################
@paniash
paniash / surfingkeys.js
Last active May 7, 2021 13:26
Settings for surfingkeys
settings.smoothScroll = false;
map("K", "R");
map("J", "E");
map("yf", "ya");
map("t", "on");
map(">", ">>");
map("<", "<<");
map("H", "S");
map("L", "D");