{"_id":"qasm-ts","_rev":"32-ca6b7d2e4ed8782b7a076c99d0bf02fe","name":"qasm-ts","dist-tags":{"latest":"2.1.4"},"versions":{"1.1.1":{"name":"qasm-ts","version":"1.1.1","keywords":["Quantum","Programming","QASM","OpenQASM","Language"],"author":{"name":"Marcus Edwards"},"license":"Apache-2.0","_id":"qasm-ts@1.1.1","maintainers":[{"name":"marcusedwards","email":"msedwards@uwaterloo.ca"}],"homepage":"https://github.com/comp-phys-marc/qasm-ts#readme","bugs":{"url":"https://github.com/comp-phys-marc/qasm-ts/issues"},"dist":{"shasum":"294f4d4e9e995a3163fb291a75e8e02544327d50","tarball":"https://registry.npmjs.org/qasm-ts/-/qasm-ts-1.1.1.tgz","fileCount":16,"integrity":"sha512-BP5hDgfaI+DI+TyVXrFobkjeHcgfqCv/8w/VJsT253xuKRYZMt4uSEHITut9C/SSJ8E0BhJzrqzsl43GkiB8+Q==","signatures":[{"sig":"MEYCIQC4CfLYa6VgNeN8yjORFuGxliwnAjSPnLPId5VdQpDqfwIhAN/2VA9o5vW1UekFXfCEJ4qep+ITA5n7tER8Q6UTGCWW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":88132,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/x9LCRA9TVsSAnZWagAARccP/3BU9WCRRlssPnrVWDdS\nyqCPIza+5owctp8aHC2Wc+VtDx4HGVbFfFRbKF2/ViAKATLXY9LZyexm7ZS/\nEGuqbxFaZ8ooAFFxCpBaPq6UClAB5qVHwAMG0UvpzbFEjG+llUEQjD8iAH4d\njy6adW6R4YLPTsqazbx62U1ZFTrb5Rmn6X9rJEwJZ3JpicroezIF+xiXLbpN\n6XKtgKsyEIDRTkZO00VJuCi0RLgh4+s+Jokbr66rfOMkD404se7bzXPQFSmV\neqNyKLFI2nxwfJyPZL+O7Df+QZks29CYTMrGTNEYWA/llOrQJetDW12OM6aY\nGXV9udrHE06kCSsLa/7UtqylpVS0vZki/2N0N/TUDRYFXhJ0/ltJoV8mtO8B\nlV7G6wm1usU77DMYmMRLtEkE33WrQQrZUD1d9GQOG8Db9a6nzp+b4JvOSSZT\nozg3KGLjaeWo2EySU/efASyqBxcVxPoZXgav57S64ZwzrOINXZ8+pV6OkfrH\nCWB7QyLMeB8XPNUZDyYejt9jsDzCh054axvmoH2jj42YTGnMCq5TSbZzzlXX\nlvC6jMatLfWtrq2c2cUqLc6d8EQCJu3tqVOfLSDbJ36+lvzsj6Vb+GyV7cbG\na16CjlFjUnSBS35jHpoqbIiOv6SLv3jUREzXG0Gdy4dyyQfzYr2jkv1vEpkn\nX3K8\r\n=5LrL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/main.js","scripts":{"test":"ts-node node_modules/jasmine/bin/jasmine"},"_npmUser":{"name":"marcusedwards","email":"msedwards@uwaterloo.ca"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/comp-phys-marc/qasm-ts.git","type":"git"},"_npmVersion":"8.3.0","description":"QASM, the low-level programming language for quantum circuit specification, implemented in TypeScript.","directories":{},"_nodeVersion":"14.15.1","dependencies":{"path":"^0.12.7","ts-node":"^8.3.0","typescript":"^3.5.3"},"_hasShrinkwrap":false,"devDependencies":{"jasmine":"^3.4.0","@types/node":"^12.7.2","@types/jasmine":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/qasm-ts_1.1.1_1644109643450_0.3687609193241588","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"qasm-ts","version":"1.1.2","keywords":["Quantum","Programming","QASM","OpenQASM","Language"],"author":{"name":"Marcus Edwards"},"license":"Apache-2.0","_id":"qasm-ts@1.1.2","maintainers":[{"name":"marcusedwards","email":"msedwards@uwaterloo.ca"}],"homepage":"https://github.com/comp-phys-marc/qasm-ts#readme","bugs":{"url":"https://github.com/comp-phys-marc/qasm-ts/issues"},"dist":{"shasum":"211bf20f07dc4ac20b787eb7956f8da9d38918e5","tarball":"https://registry.npmjs.org/qasm-ts/-/qasm-ts-1.1.2.tgz","fileCount":10,"integrity":"sha512-1eB9rTjR7aanSeUfQIdUaoUSONLr5ztXTovD0yRU5r59f0TJ5yK7ve1egICBGHK+/j2Wg0OFxcBiUHYQ9CZ9Jg==","signatures":[{"sig":"MEQCIFJTqasKJzorygs/KyCXWgE2Ixc7V8n6PRsQQ2rvuFr3AiBhKiKHNCjLxQKtx4kIEvMYooKfK0ZrYkCGx06B1v1RhA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51707,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/yDPCRA9TVsSAnZWagAAgeUP/1Sbc0aZ7SX5B+T+ByOY\nMDXXcFRfRHEVBbLm1Hd+maSdT/zn6bAK7rGDToNZI681Tw1QuzWbmTzUQrHa\ndySs8Gn6tpiM7p7WcYNdvt9FcKoaIDK2fyNvNqpGxp+fyJaWMcK4GRm/kMxZ\nUI+fOX/uIoC6WDohkvFagTe3hhmVx/JUcEfcNuesnrgVG55YAbJZidjiGOGs\nPyw2CRoFtqCbSp1864IOlrw5okcLw5PzeoenBr8vOGr2/JulEL5bT/dccTQ5\nWMOeXvGl37eEV1411qxwlGgMrRGGeg6FZ5mf/NAgCP8xQf5scSZNAFHh1+hA\nx4g453/7g9J/vltqtqzsS5MY+d11Q3RtFApDvMGPC6b2bnALQQzprkV+JKym\nWRo8NwrcousPGK8INIv+2ki46RDZNEt/YhdCq7Jx33MnjvISHBTVrIoypRhm\nyR0SrC0fNxYsDol7EmtJfr1eU6BwpITMdwfaJgzIpNIfiVvkWYJeUIkxmU25\nVD9Hta7cdoBesG29s0dXh/Doll65+XXPKPUQZjVvoH6XGLnDgnesZfnr4p7T\nA8k7oE7Pda8x4iwzTGEbzksiiXzcaNwdeFzS6GVzwnpfo4A6oI3ICsElXsu4\nLGhEJmFINRj5vsAqso0cC4DmCXU/XRba0JaISVHuvQ7FunFOJiWxYmleCn7E\nEuLd\r\n=iT3D\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/main.js","scripts":{"test":"ts-node node_modules/jasmine/bin/jasmine"},"_npmUser":{"name":"marcusedwards","email":"msedwards@uwaterloo.ca"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/comp-phys-marc/qasm-ts.git","type":"git"},"_npmVersion":"8.3.0","description":"QASM, the low-level programming language for quantum circuit specification, implemented in TypeScript.","directories":{},"_nodeVersion":"14.15.1","dependencies":{"path":"^0.12.7","ts-node":"^8.3.0","typescript":"^3.5.3"},"_hasShrinkwrap":false,"devDependencies":{"jasmine":"^3.4.0","@types/node":"^12.7.2","@types/jasmine":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/qasm-ts_1.1.2_1644110031242_0.8681231291925224","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"qasm-ts","version":"1.1.3","keywords":["Quantum","Programming","QASM","OpenQASM","Language"],"author":{"name":"Marcus Edwards"},"license":"Apache-2.0","_id":"qasm-ts@1.1.3","maintainers":[{"name":"marcusedwards","email":"msedwards@uwaterloo.ca"}],"homepage":"https://github.com/comp-phys-marc/qasm-ts#readme","bugs":{"url":"https://github.com/comp-phys-marc/qasm-ts/issues"},"dist":{"shasum":"65ecad0abb49d0a3c119e73b76f4cae45b14dec8","tarball":"https://registry.npmjs.org/qasm-ts/-/qasm-ts-1.1.3.tgz","fileCount":10,"integrity":"sha512-F5u6tW3ERwbaWQu3mLU2WuamN8q4aw0nxPQrSTWLgMd3y93tt2iIPLg6pdrQco4Fg1iwTCTX1U4HPgolPb0QyQ==","signatures":[{"sig":"MEUCICLb5dY04xHmSL4VZ6sOtXNZ3JuCDZrhwy6yAkuzGWy9AiEA7uiXXYmCTETvWNPTb2AH2CB5peKGVtGN1bFdPlg5Fgc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51707,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/yMSCRA9TVsSAnZWagAAtk0P/3W5zU0lnWWuWl9erAcB\n/1WNmUSvzjTSKA59Iq29pQm2YMXgB8bLWRIFyhJyugV9OWArwQZyStqKyXXX\nZQH+GPFv7vornXwPWjEWVWqPJrxyVbNRs4U2RPN6lzPq5CIVOvpAtwT3uaHa\na/9Y8cMBNlIGJQxsP0e+lKgxa7Mt09Yxe3ACK0MfJgsJ1Z4Q6megAs52Dc8u\n17crO5xN6EaViOMw1N0erxwqmyquab65RhzX+dln+pasmxXCi78ke1JOManX\nhWXdPjecaNNiLlNbxwHLPdQwkPHxSU6CP3d72RKhHcLO7AcfiCNrGK+k6G8e\nnX03SaBCFVwSZlvs3vk66NvfVr1UpfvIAfh/zbZNaxd2H3ODB+8phkeZQB/c\nROv2FD5xApGIYz4Ukc0mzqO+/G2tbKnirRElUzC7Xs9+3QilAAZbNp5Dy/0Z\nBt4rTETapz4nX5IQC3WKzlJEzCX75ZiXup9jUdf0UFIx2S4G7HhWzytxlatH\nXY9130sNu1NX1nITV/ZNhRIGzIoONcxAX8JZNIZtA3iH7nQ5gPumIOSstf6/\nshGclFboj8WBgNd5sG5sXXUOBUQlsmm3V5Vof/ktvEIq14BMfMcdjuApkCMw\nLQoS+Ju82DJcIAJh+sCKZtHny74qUL0LYkqRrjwuqDcc+XR3aaDI442/Kp2G\ngsGp\r\n=8wfH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/main.js","scripts":{"test":"ts-node node_modules/jasmine/bin/jasmine"},"_npmUser":{"name":"marcusedwards","email":"msedwards@uwaterloo.ca"},"repository":{"url":"git+https://github.com/comp-phys-marc/qasm-ts.git","type":"git"},"_npmVersion":"8.3.0","description":"QASM, the low-level programming language for quantum circuit specification, implemented in TypeScript.","directories":{},"_nodeVersion":"14.15.1","dependencies":{"path":"^0.12.7","ts-node":"^8.3.0","typescript":"^3.5.3"},"_hasShrinkwrap":false,"devDependencies":{"jasmine":"^3.4.0","@types/node":"^12.7.2","@types/jasmine":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/qasm-ts_1.1.3_1644110609778_0.7074358530350531","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"qasm-ts","version":"2.0.0","keywords":["Quantum","Programming","QASM","OpenQASM","Language"],"author":{"name":"Marcus Edwards"},"license":"Apache-2.0","_id":"qasm-ts@2.0.0","maintainers":[{"name":"marcusedwards","email":"msedwards@uwaterloo.ca"}],"homepage":"https://github.com/comp-phys-marc/qasm-ts#readme","bugs":{"url":"https://github.com/comp-phys-marc/qasm-ts/issues"},"dist":{"shasum":"226a836eda32f8afdaaec8e19eb0f4e629b32388","tarball":"https://registry.npmjs.org/qasm-ts/-/qasm-ts-2.0.0.tgz","fileCount":188,"integrity":"sha512-SBLfYKByK75oT0cJasDEXBi6P9EmwrNfxn/V/DOy8vvnBJ8+Az9E36EDpoMtEqjzVKWwoYdYPgHxiXHkTwAvsg==","signatures":[{"sig":"MEUCIGo+ayh4VnpUkRZ+c9VJ4HWyDQxsaKl1Ctu/5GR++291AiEA9CgMj80TS/nUZhDbox0HV1k94w1NuWG+LA+hi5u4JZ8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2807003},"main":"dist/main.js","gitHead":"bbf4e2c5b3ea5cc69ccc4722a1288319a41924c5","scripts":{"test":"ts-node node_modules/jasmine/bin/jasmine"},"_npmUser":{"name":"marcusedwards","email":"msedwards@uwaterloo.ca"},"repository":{"url":"git+https://github.com/comp-phys-marc/qasm-ts.git","type":"git"},"_npmVersion":"10.9.0","description":"QASM, the low-level programming language for quantum circuit specification, implemented in TypeScript.","directories":{},"_nodeVersion":"23.1.0","dependencies":{"path":"^0.12.7","ts-node":"^8.3.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","jasmine":"^3.4.0","typescript":"^5.5.4","@types/node":"^12.7.2","@types/jasmine":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/qasm-ts_2.0.0_1731368200966_0.5552690838256173","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"qasm-ts","version":"2.1.0","keywords":["Quantum","Programming","QASM","OpenQASM","Language"],"author":{"name":"Marcus Edwards"},"license":"Apache-2.0","_id":"qasm-ts@2.1.0","maintainers":[{"name":"marcusedwards","email":"msedwards@uwaterloo.ca"}],"homepage":"https://github.com/comp-phys-marc/qasm-ts#readme","bugs":{"url":"https://github.com/comp-phys-marc/qasm-ts/issues"},"dist":{"shasum":"2d7c4cb2e82aedd2551c30eacc94f4ba84ccb9b5","tarball":"https://registry.npmjs.org/qasm-ts/-/qasm-ts-2.1.0.tgz","fileCount":202,"integrity":"sha512-tIiGuRrzz6JT+2cgqWd9cawGEdF65pEwt9HPRrG09SXcY4Ipoe1mz38NxpUA06ASrdhdTZUkF5xcm7EfnBZ1zQ==","signatures":[{"sig":"MEUCIEkjdExGFPWCDKKOUV3uBHs1ofRZ4FTVfrJQ3JEnXlrjAiEA4VLwaj8yRrJ8oIDO1mz+w6lpvcGBBzTC3AG2Cy+mXhQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3378522},"main":"dist/main.js","gitHead":"b08e646e89e5e0fec0ecca3b41c571888a5f8198","scripts":{"docs":"typedoc --options docs/typedoc.json","test":"ts-node node_modules/jasmine/bin/jasmine"},"_npmUser":{"name":"marcusedwards","email":"msedwards@uwaterloo.ca"},"repository":{"url":"git+https://github.com/comp-phys-marc/qasm-ts.git","type":"git"},"_npmVersion":"11.4.2","description":"QASM, the low-level programming language for quantum circuit specification, implemented in TypeScript.","directories":{},"_nodeVersion":"24.4.1","dependencies":{"path":"^0.12.7","ts-node":"^8.3.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","jasmine":"^3.4.0","typedoc":"^0.28.12","typescript":"^5.5.4","@types/node":"^12.7.2","@types/jasmine":"^3.4.0","@typescript-eslint/parser":"^8.42.0","@typescript-eslint/eslint-plugin":"^8.42.0"},"_npmOperationalInternal":{"tmp":"tmp/qasm-ts_2.1.0_1758130075403_0.8664597694578711","host":"s3://npm-registry-packages-npm-production"}},"2.1.1":{"name":"qasm-ts","version":"2.1.1","keywords":["Quantum","Programming","QASM","OpenQASM","Language"],"author":{"name":"Marcus Edwards"},"license":"Apache-2.0","_id":"qasm-ts@2.1.1","maintainers":[{"name":"marcusedwards","email":"msedwards@uwaterloo.ca"}],"homepage":"https://github.com/comp-phys-marc/qasm-ts#readme","bugs":{"url":"https://github.com/comp-phys-marc/qasm-ts/issues"},"dist":{"shasum":"d76d8a381c3fde86ce3f00257cff9e83ebb85eff","tarball":"https://registry.npmjs.org/qasm-ts/-/qasm-ts-2.1.1.tgz","fileCount":202,"integrity":"sha512-uCT5U0k5VfyN9OdiEzj64PYm1gSq7vgqUtVm0ykF4f5h8mPl5pTq6L59dcxH4XS/e3ragYSpNM2/xIerkuO7iQ==","signatures":[{"sig":"MEYCIQCg3pCI0mJUidpdRMuBQAucaca2+HfjGkBgQsrDOtOZKgIhALmvVEfXGTJW71DXjg7Nf963wfVmxgVWE9xyhdV4i3KX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3378847},"main":"dist/main.js","gitHead":"341ecfa8978eb3ad2a3a1c0dfac78effa5a7c945","scripts":{"docs":"typedoc --options docs/typedoc.json","test":"ts-node node_modules/jasmine/bin/jasmine"},"_npmUser":{"name":"marcusedwards","email":"msedwards@uwaterloo.ca"},"repository":{"url":"git+https://github.com/comp-phys-marc/qasm-ts.git","type":"git"},"_npmVersion":"11.4.2","description":"QASM, the low-level programming language for quantum circuit specification, implemented in TypeScript.","directories":{},"_nodeVersion":"24.4.1","dependencies":{"path":"^0.12.7","ts-node":"^8.3.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","jasmine":"^3.4.0","typedoc":"^0.28.12","typescript":"^5.5.4","@types/node":"^12.7.2","@types/jasmine":"^3.4.0","@typescript-eslint/parser":"^8.42.0","@typescript-eslint/eslint-plugin":"^8.42.0"},"_npmOperationalInternal":{"tmp":"tmp/qasm-ts_2.1.1_1758130232530_0.6175407208840891","host":"s3://npm-registry-packages-npm-production"}},"2.1.2":{"name":"qasm-ts","version":"2.1.2","keywords":["Quantum","Programming","QASM","OpenQASM","Language"],"author":{"name":"Marcus Edwards"},"license":"Apache-2.0","_id":"qasm-ts@2.1.2","maintainers":[{"name":"marcusedwards","email":"msedwards@uwaterloo.ca"}],"homepage":"https://github.com/comp-phys-marc/qasm-ts#readme","bugs":{"url":"https://github.com/comp-phys-marc/qasm-ts/issues"},"dist":{"shasum":"31591ff3da68f78fb82ca12a25d4d44ad612948b","tarball":"https://registry.npmjs.org/qasm-ts/-/qasm-ts-2.1.2.tgz","fileCount":203,"integrity":"sha512-sNyCRivZsWa4AUeV+NIcvo8SY/k1Y7tZviNi/nLuch4yucR9s8wt4/q9z+Ulg0cbJ0nObKeHiFg+SrD6422mww==","signatures":[{"sig":"MEYCIQCb70NFC3vEFA6GmmM4LUoFTP3DZ2stdHP9RFcagmsnvQIhAOuxnS4mknWxN7Mu31avNrgb346Tz+yMBf4cmQO11iYv","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3380230},"main":"dist/main.js","gitHead":"ed67558263191f46c691ae3a761fe0d84a47c053","scripts":{"docs":"typedoc --options docs/typedoc.json","test":"ts-node node_modules/jasmine/bin/jasmine"},"_npmUser":{"name":"marcusedwards","email":"msedwards@uwaterloo.ca"},"repository":{"url":"git+https://github.com/comp-phys-marc/qasm-ts.git","type":"git"},"_npmVersion":"11.4.2","description":"QASM, the low-level programming language for quantum circuit specification, implemented in TypeScript.","directories":{},"_nodeVersion":"24.4.1","dependencies":{"path":"^0.12.7","ts-node":"^8.3.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","jasmine":"^3.4.0","typedoc":"^0.28.12","typescript":"^5.5.4","@types/node":"^12.7.2","@types/jasmine":"^3.4.0","@typescript-eslint/parser":"^8.42.0","@typescript-eslint/eslint-plugin":"^8.42.0"},"_npmOperationalInternal":{"tmp":"tmp/qasm-ts_2.1.2_1758566811218_0.7789328944991554","host":"s3://npm-registry-packages-npm-production"}},"2.1.3":{"name":"qasm-ts","version":"2.1.3","keywords":["Quantum","Programming","QASM","OpenQASM","Language"],"author":{"name":"Marcus Edwards"},"license":"Apache-2.0","_id":"qasm-ts@2.1.3","maintainers":[{"name":"marcusedwards","email":"msedwards@uwaterloo.ca"}],"homepage":"https://github.com/comp-phys-marc/qasm-ts#readme","bugs":{"url":"https://github.com/comp-phys-marc/qasm-ts/issues"},"dist":{"shasum":"f9f6fc74b0cbd64bc43aa87918a8bd0ef9bdf609","tarball":"https://registry.npmjs.org/qasm-ts/-/qasm-ts-2.1.3.tgz","fileCount":190,"integrity":"sha512-BSfmc46EKP8IoNgmKUJc8LOiAsnnSNKMI2KvqrfHxnvXoSHyiVkpAOrZzbYDT4FUZdA8ZpTh/mxffqwOKanUkg==","signatures":[{"sig":"MEUCIDGJPTsV+3zYsvCt61F9ghVQOTqoh2zAmcn8bcus3/4wAiEA/62K4nOvZ22i8H2lUGQYqkmkWdwkEy3ReUFgbJQI5PE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3116822},"main":"dist/main.js","gitHead":"becb511c440fd941b0b8c096368cd72d8308d303","scripts":{"docs":"typedoc --options docs/typedoc.json","test":"ts-node node_modules/jasmine/bin/jasmine","build":"tsc -p ./tsconfig.json"},"_npmUser":{"name":"marcusedwards","email":"msedwards@uwaterloo.ca"},"repository":{"url":"git+https://github.com/comp-phys-marc/qasm-ts.git","type":"git"},"_npmVersion":"8.3.1","description":"QASM, the low-level programming language for quantum circuit specification, implemented in TypeScript.","directories":{},"_nodeVersion":"16.14.0","dependencies":{"path":"^0.12.7","ts-node":"^8.3.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","jasmine":"^3.4.0","typedoc":"^0.28.12","typescript":"^5.5.4","@types/node":"^12.7.2","@types/jasmine":"^3.4.0","@typescript-eslint/parser":"^8.42.0","@typescript-eslint/eslint-plugin":"^8.42.0"},"_npmOperationalInternal":{"tmp":"tmp/qasm-ts_2.1.3_1775323718316_0.9956779458337248","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Please update to at least v2.1.4."},"2.1.4":{"name":"qasm-ts","version":"2.1.4","keywords":["Quantum","Programming","QASM","OpenQASM","Language"],"author":{"name":"Marcus Edwards"},"license":"Apache-2.0","_id":"qasm-ts@2.1.4","maintainers":[{"name":"marcusedwards","email":"msedwards@uwaterloo.ca"}],"homepage":"https://github.com/comp-phys-marc/qasm-ts#readme","bugs":{"url":"https://github.com/comp-phys-marc/qasm-ts/issues"},"dist":{"shasum":"48c949b455a36a8c801929f93aa83a3d8f16fe1e","tarball":"https://registry.npmjs.org/qasm-ts/-/qasm-ts-2.1.4.tgz","fileCount":216,"integrity":"sha512-tSG8eF8u2U68z9jzcEobjgLyM/DezUWH8sdPwRmTR2SDmry9piLDvqwmVcITOdfFkT2EqgBcmFgq6vz2MJ1wQg==","signatures":[{"sig":"MEUCIQCeEzdWcR+mGxyiI9Lz3Ba7A6/6NPryOg+eIlAGcFcybQIgS/RlVbyssOizYywseTOCpd4m2ONZ13tZATGqMWVu5oI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3424234},"main":"dist/main.js","types":"./dist/main.d.ts","gitHead":"becb511c440fd941b0b8c096368cd72d8308d303","scripts":{"docs":"typedoc --options docs/typedoc.json","test":"ts-node node_modules/jasmine/bin/jasmine","build":"tsc -p ./tsconfig.json"},"_npmUser":{"name":"marcusedwards","email":"msedwards@uwaterloo.ca"},"repository":{"url":"git+https://github.com/comp-phys-marc/qasm-ts.git","type":"git"},"_npmVersion":"8.3.1","description":"QASM, the low-level programming language for quantum circuit specification, implemented in TypeScript.","directories":{},"_nodeVersion":"16.14.0","dependencies":{"path":"^0.12.7","ts-node":"^8.3.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","jasmine":"^3.4.0","typedoc":"^0.28.12","typescript":"^5.5.4","@types/node":"^12.7.2","@types/jasmine":"^3.4.0","@typescript-eslint/parser":"^8.42.0","@typescript-eslint/eslint-plugin":"^8.42.0"},"_npmOperationalInternal":{"tmp":"tmp/qasm-ts_2.1.4_1775324280039_0.41118291261176165","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2022-02-06T01:07:23.450Z","modified":"2026-04-04T17:57:46.503Z","1.1.11":"2021-04-24T03:07:54.831Z","1.1.10":"2021-04-24T03:07:54.831Z","1.1.9":"2021-04-24T03:07:54.831Z","1.1.7":"2021-08-02T22:25:25.078Z","1.1.8":"2021-08-06T04:52:55.647Z","1.1.1":"2022-02-06T01:07:23.631Z","1.1.2":"2022-02-06T01:13:51.399Z","1.1.3":"2022-02-06T01:23:30.014Z","2.0.0":"2024-11-11T23:36:41.233Z","2.1.0":"2025-09-17T17:27:55.609Z","2.1.1":"2025-09-17T17:30:32.826Z","2.1.2":"2025-09-22T18:46:51.501Z","2.1.3":"2026-04-04T17:28:38.467Z","2.1.4":"2026-04-04T17:38:00.241Z"},"bugs":{"url":"https://github.com/comp-phys-marc/qasm-ts/issues"},"author":{"name":"Marcus Edwards"},"license":"Apache-2.0","homepage":"https://github.com/comp-phys-marc/qasm-ts#readme","keywords":["Quantum","Programming","QASM","OpenQASM","Language"],"repository":{"url":"git+https://github.com/comp-phys-marc/qasm-ts.git","type":"git"},"description":"QASM, the low-level programming language for quantum circuit specification, implemented in TypeScript.","maintainers":[{"name":"marcusedwards","email":"msedwards@uwaterloo.ca"}],"readme":"# QASM TypeScript\n\n![NPM Downloads](https://img.shields.io/npm/dy/qasm-ts)\n[![DOI](https://joss.theoj.org/papers/10.21105/joss.08696/status.svg)](https://doi.org/10.21105/joss.08696)\n\n\nOpenQASM, the low-level programming language for quantum circuit specification, implemented in TypeScript.\n\nQASM-TS 2.0 is an implementation of a compiler frontend for OpenQASM 2.0 and 3.0. It includes a lexer and a parser of the OpenQASM language. The source is parsed into an Intermediate Representation (IR): an Abstract Syntax Tree (AST) that captures program structure including control flow and data flow.\n\nThe package is aimed at enabling implementations of verification and validation software (such as semantic and static analyzers), compilers and more. These tools may be instrumental in the formalization of hybrid quantum-classical computing.\n\nLanguage documentation is provided by IBM [here](https://openqasm.com).\n\n## New in Version 2.1.x\n\nThis release includes several improvements made during the review of the repo by reviewers from the Journal of Open Source Software. These improvements include:\n\n- more examples in documentation\n- easier navigation in the documentation\n- files like CONTRIBUTING and LICENSE\n- fix for the compatibility of the test suite with Windows\n- documentation on how to run our benchmarks\n- improvements to the README\n- Type exports\n- etc.\n\n\n## Usage\n\nImport the parse function or parseString function from the package.\n\n```ts\nimport { parseFile, parseString } from 'qasm-ts';\n```\n\n`parseFile` can be called with a `String` file path to a `.qasm` file. It will parse the file and return the abstract syntax tree representation. `parseFile` can also take 3 optional parameters: \n1. `version`: A `number`, `OpenQASMVersion`, or `OpenQASMMajorVersion`. Specifies whether to use the Qasm 2 or 3 lexer/parser (defaults to version 3).\n2. `verbose`: A `Boolean`. Whether to return verbose objects that includes an extra key for each node's class name (defaults to `false`).\n3. `stringify`: A `Boolean`. Whether to stringify and format the return object (defaults to `false`).\n\n```ts\nlet ast = parseFile(\"<file-path>\");\n```\n\n`parseString` should be called with a `String` of QASM code. It will parse the code and return the abstract syntax tree representation. `parseString` also takes the same optional arguments as `parseFile`.\n\n```ts\nlet ast = parseString(\"<qasm-string>\");\n```\n\nThe return type for both `parseFile` and `parseString` is `Array<AstNode>`, unless the `stringify` parameter is `true`, in which case the return is a `String`.\n\nThe parser is able to recognize and handle 19 distinct types of syntax errors, which are defined and\nexported in `errors.ts`. While this is not an advanced semantic or static analysis, it should enable \nusers to basically validate their OpenQASM 2.0 or 3.0 code.\n\nComprehensive API docs can be found in the `docs/` directory, and the docs are hosted online [here](https://marcusedwards.me/qasm-ts).\n\n## Example I/O\n\n### Input: `alignment.qasm` ([source](https://github.com/openqasm/openqasm/blob/main/examples/alignment.qasm))\n\n```\ninclude \"stdgates.inc\";\n\nstretch g;\n\nqubit[3] q;\nbarrier q;\ncx q[0], q[1];\ndelay[g] q[2];\nU(pi/4, 0, pi/2) q[2];\ndelay[2*g] q[2];\nbarrier q;\n\n```\n\n### Output: Abstract Syntax Tree\n\n```\n[\n  Include { filename: '\"stdgates.inc\"' },\n  ClassicalDeclaration {\n    classicalType: StretchType {},\n    identifier: Identifier { name: 'g' },\n    initializer: null,\n    isConst: false\n  },\n  QuantumDeclaration {\n    identifier: Identifier { name: 'q' },\n    size: IntegerLiteral { value: 3 }\n  },\n  QuantumBarrier { qubits: [ [Identifier] ] },\n  QuantumGateCall {\n    quantumGateName: Identifier { name: 'cx' },\n    qubits: [ [SubscriptedIdentifier], [SubscriptedIdentifier] ],\n    parameters: null,\n    modifiers: []\n  },\n  QuantumDelay {\n    duration: Identifier { name: 'g' },\n    qubits: [ [SubscriptedIdentifier] ]\n  },\n  QuantumGateCall {\n    quantumGateName: Identifier { name: 'U' },\n    qubits: [ [SubscriptedIdentifier] ],\n    parameters: Parameters { args: [Array] },\n    modifiers: []\n  },\n  QuantumDelay {\n    duration: Arithmetic { op: '*', left: [IntegerLiteral], right: [Identifier] },\n    qubits: [ [SubscriptedIdentifier] ]\n  },\n  QuantumBarrier { qubits: [ [Identifier] ] }\n]\n```\n\nTo reproduce this output, you could run the following script in the directory where `alignment.qasm` is located.\n\n```\nimport { parseFile } from 'qasm-ts';\n\nconst ast = parseFile(\"./alignment.qasm\", 3);\n\nconsole.log(ast);\n```\n\nTo run TypeScript files, you can use any number of compilers, but we recommend `ts-node`. For more information on `ts-node`, refer to [the docs](https://www.npmjs.com/package/ts-node).\n\n```\nts-node script.ts\n```\n\n## Source code\n\nFeel free to clone, fork, comment or contribute on [GitHub](https://github.com/comp-phys-marc/qasm-ts)!\n\n## Contributing\n\nTo get started contributing to QASM-TS, please see the open issues for a place to start.\nAlternatively, you are welcome to create any issues which you feel may capture changes, improvements or additions to the package that would be useful. These may be bug reports or enhancement requests. These will be reviewed in a timely manner by a maintainer. If you are able to implement any desired functionality or bug fixes yourself, we also welcome and promise to review any pull requests. Please simply fork the repository and create a branch in your fork with the changes in question. When you create your pull request, make sure to target our repo.\n\n## Transpiling\n\n```\ntsc src/*.ts --outDir dist\n```\n\n## Installing dependencies\n\n```\nnpm install\n```\n\n## Run Unit Tests, Conformance Tests\n\n```\nnpm test\n```\n\n## Run benchmarks\n\nTo run benchmarks that compare this package's performance against pre-existing ANTLR and Rust based parsers, see the [benchmarking repo](https://github.com/seankim658/qasm-parser-testing) and its instructions.\n\n## References\n\nThe original OpenQASM authors:\n\n- Andrew W. Cross, Lev S. Bishop, John A. Smolin, Jay M. Gambetta \"Open Quantum Assembly Language\" [arXiv:1707.03429](https://web.archive.org/web/20210121114036/https://arxiv.org/abs/1707.03429).\n- Andrew W. Cross, Ali Javadi-Abhari, Thomas Alexander, Niel de Beaudrap, Lev S. Bishop, Steven Heidel, Colm A. Ryan, Prasahnt Sivarajah, John Smolin, Jay M. Gambetta, Blake R. Johnson \"OpenQASM 3: A broader and deeper quantum assembly language\" [arXiv:2104.14722](https://arxiv.org/abs/2104.14722)\n\nAnother strongly typed implementation from which this project took some inspiration:\n\n- [Adam Kelly's Rust QASM Parser](https://github.com/libtangle/qasm-rust) \n\n## License\n\nCopyright 2019 Marcus Edwards\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:\n\n```\nhttp://www.apache.org/licenses/LICENSE-2.0\n```\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\n## How to Cite\n\nIf you are using QASM-TS for research we appreciate any citations. Please read and cite our [paper](https://doi.org/10.21105/joss.08696) published with the Journal of Open Source Software.\n\n```\n@article{Kim_2025,\n  doi = {10.21105/joss.08696},\n  url = {https://doi.org/10.21105/joss.08696},\n  year = {2025},\n  publisher = {The Open Journal},\n  volume = {10},\n  number = {113},\n  pages = {8696},\n  author = {Kim, Sean and Edwards, Marcus},\n  title = {Enabling the Verification and Formalization of Hybrid Quantum-Classical Computing with OpenQASM 3.0 compatible QASM-TS 2.0},\n  journal = {Journal of Open Source Software}\n}\n \n```\n","readmeFilename":"readme.md"}