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 qiskit import QuantumCircuit, Aer | |
import qiskit | |
import covalent as ct | |
@ct.electron | |
def hadamard(circuit, qubit): | |
circuit.h(qubit) | |
return circuit |
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
# 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 |
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
#!/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 |
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
# 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. |
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
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 |