You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ntezak edited this page Dec 11, 2012
·
3 revisions
Use this page to directly share some code examples or to link to some gists that you would like to share.
Embedded Code Example:
import qnet.circuit_algebra as ca
import sympy
Q = ca.local_space('Q')
a = ca.Destroy(Q)
Delta, kappa = sympy.symbols('Delta, kappa', real = True)
H = Delta * a.dag() * a
L = ca.Matrix([[ca.sqrt(Delta) * a]])
S = ca.identity_matrix(1)
cavity_model = ca.SLH(S, L, H)