33 lines
1.3 KiB
JavaScript
33 lines
1.3 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
|
|
* Module id: 834876
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e, t, i) => {
|
|
"use strict";
|
|
function r(e) {
|
|
(e.languages.openqasm = {
|
|
comment: /\/\*[\s\S]*?\*\/|\/\/.*/,
|
|
string: { pattern: /"[^"\r\n\t]*"|'[^'\r\n\t]*'/, greedy: !0 },
|
|
keyword:
|
|
/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,
|
|
"class-name":
|
|
/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,
|
|
function: /\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,
|
|
constant: /\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,
|
|
number: {
|
|
pattern:
|
|
/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,
|
|
lookbehind: !0,
|
|
},
|
|
operator: /->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,
|
|
punctuation: /[(){}\[\];,:.]/,
|
|
}),
|
|
(e.languages.qasm = e.languages.openqasm);
|
|
}
|
|
(t.exports = r), (r.displayName = "openqasm"), (r.aliases = ["qasm"]);
|
|
};
|
|
|
|
export default moduleFactory;
|