Skip to content

Instantly share code, notes, and snippets.

import sympy
from sympy import I, sqrt, exp, pi
from sympy.physics.quantum import qapply
from sympy.physics.quantum import Ket, Bra
from sympy.physics.quantum import InnerProduct, OuterProduct
from sympy.physics.quantum.qubit import Qubit
from sympy.physics.quantum.dagger import Dagger
def inner_product(a,b):
k0 = Qubit(0)
@sgmenda
sgmenda / keybase.md
Created August 18, 2019 23:31
Keybase Proof

Keybase proof

I hereby claim:

  • I am sgmenda on github.
  • I am sanketh (https://keybase.io/sanketh) on keybase.
  • I have a public key whose fingerprint is BC2F BB19 7861 CE9E B638 A337 70B2 7CFA 0AEC F418

To claim this, I am signing this object:

@sgmenda
sgmenda / brew-stuff.sh
Created February 16, 2019 16:34
Brew stuff
#!/bin/bash
brew update
brew upgrade
brew cleanup -s
# now diagnotic
brew doctor
brew missing