Skip to content

Instantly share code, notes, and snippets.

View scottwn's full-sized avatar

Scott Wyman Neagle scottwn

View GitHub Profile
@scottwn
scottwn / qiskit-covalent.py
Last active July 26, 2022 13:47
Minimal example of Covalent integration with Qiskit
from qiskit import QuantumCircuit, Aer
import qiskit
import covalent as ct
@ct.electron
def hadamard(circuit, qubit):
circuit.h(qubit)
return circuit
@scottwn
scottwn / scli.sh
Last active August 15, 2022 16:15
scli procedures
# Here are some procedures for setting up dbus on an M1 Mac to work with scli
# Uninstalling
rm -rf scli
rm -rf signal-cli
brew uninstall dbus
# Check the following directories for dbus files and delete them
#!/usr/bin/env fish
for image in (docker images)
if string match -q '*none*' (string split ' ' --no-empty -f1 $image)
docker image rm (string split ' ' --no-empty -f3 $image)
end
end
# For the benefit of emacs users: -*- shell-script -*-
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.7
#
# If you edit this file, do not forget to uncomment any lines
# that you change.
# The pound(#) symbol may be used anywhere for comments.
@scottwn
scottwn / .vimrc
Last active February 28, 2024 14:29
my good vimrc
if has('python3')
endif
set tabstop=4 softtabstop=0 expandtab shiftwidth=2 smarttab
set spelllang=en
set list
set listchars=tab:>-
set autoindent
set smartindent
set hlsearch
set incsearch