Created
December 15, 2023 18:59
-
-
Save gpolitis/b627984581daa2e37dac713b368156fc to your computer and use it in GitHub Desktop.
OpenQASM language definition for LaTeX listings
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
% original author Thomas Wong https://twitter.com/thomasgwong/status/1067202788487245824?lang=en | |
\lstdefinelanguage{OpenQASM}{ | |
morekeywords={qreg,creg,include,gate,opqaue,U,CX,measure,reset,if,barrier,u3,u2,u1,cx,id,x,y,z,h,s,sdg,t,tdg,rx,ry,rz,cz,cy,ch,ccx,crz,cu1,cu3}, | |
sensitive=true, | |
morecomment=[l]{//}, | |
morestring=[b]" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment