{"id":22914070,"url":"https://github.com/ax1/qclient-node","last_synced_at":"2025-10-08T20:11:16.961Z","repository":{"id":65477694,"uuid":"390358700","full_name":"ax1/qclient-node","owner":"ax1","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-29T11:49:30.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-29T11:50:11.438Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ax1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-28T13:20:40.000Z","updated_at":"2021-07-29T11:49:33.000Z","dependencies_parsed_at":"2023-01-25T06:45:18.000Z","dependency_job_id":null,"html_url":"https://github.com/ax1/qclient-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ax1/qclient-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ax1%2Fqclient-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ax1%2Fqclient-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ax1%2Fqclient-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ax1%2Fqclient-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ax1","download_url":"https://codeload.github.com/ax1/qclient-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ax1%2Fqclient-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000680,"owners_count":26082817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T05:13:16.381Z","updated_at":"2025-10-08T20:11:16.944Z","avatar_url":"https://github.com/ax1.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# qclient\n\nClient for running quantum applications on qserver instances. See https://quantum.tecnalia.com.\n\n## Install\n\n```sh\nnpm install qclient-node\n```\n\n## Usage\n\n```js\nimport * as q from 'qclient-node'\n\nasync function test(name) {\n  q.configure({ server: 'http://localhost:8080', token:'AAA' })\n  const algorithm = await q.get(name)\n  const result = await q.execute(name)\n  const data = '...qasm_or_quil...'\n  const result = await q.execute(data)\n}\n\ntest('bell').catch(console.error)\n```\n\n# Methods\n\n- **configure({ server?, ext? ,token? })**: `server`: default server at https://quantum.tecnalia.com. `ext`: default '.qasm', useful in case always using the same language to represent the algorithm. `token`: default '', authorization token to execute services. E.g.: `configure({\"token':'kkajsdkj-sudiuawjd....\"})`.\n- **get(algorithm_name)**: the algorithm in plain text, the extension of the file is optional. E.g.: `get('bell')`.\n- **execute(algorithm_name or algorithm_description)**: based on the extension, an engine executes the algorithm and provides the result as string (depending on the engine, the result format can vary). E.g.: `execute('bell')`. If the algorithm is not stored yet, it can be executed by providing the text representation (in qasm, quil, etc.). E.g: execute('...qasm_string').\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fax1%2Fqclient-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fax1%2Fqclient-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fax1%2Fqclient-node/lists"}