{"id":37656504,"url":"https://github.com/dakk/caml_qiskit","last_synced_at":"2026-01-16T11:42:58.056Z","repository":{"id":141802682,"uuid":"283226694","full_name":"dakk/caml_qiskit","owner":"dakk","description":"OCaml wrapper for Qiskit quantum computing toolkit","archived":false,"fork":false,"pushed_at":"2024-03-13T15:46:41.000Z","size":451,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-03-13T17:01:01.685Z","etag":null,"topics":["ibmq","ocaml-bindings","qiskit","quantum","quantum-computing"],"latest_commit_sha":null,"homepage":"https://dakk.github.io/caml_qiskit/","language":"OCaml","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/dakk.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-07-28T13:52:08.000Z","updated_at":"2024-02-23T09:43:16.000Z","dependencies_parsed_at":"2024-03-13T17:07:59.045Z","dependency_job_id":null,"html_url":"https://github.com/dakk/caml_qiskit","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dakk/caml_qiskit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakk%2Fcaml_qiskit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakk%2Fcaml_qiskit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakk%2Fcaml_qiskit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakk%2Fcaml_qiskit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dakk","download_url":"https://codeload.github.com/dakk/caml_qiskit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakk%2Fcaml_qiskit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ibmq","ocaml-bindings","qiskit","quantum","quantum-computing"],"created_at":"2026-01-16T11:42:57.972Z","updated_at":"2026-01-16T11:42:58.043Z","avatar_url":"https://github.com/dakk.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Caml_qiskit\n\nAn OCaml wrapper for IBM Qiskit quantum computing toolkit.\n\n```opam install qiskit```\n\n\n## Example\n\n```ocaml\nopen Qiskit\n\n(* Create the circuit *)\nlet qc = quantum_circuit 2 2 \n  |\u003e h 0 \n  |\u003e id 1 \n  |\u003e barrier\n  |\u003e cx 0 1\n  |\u003e barrier\n  |\u003e measure 0 0\n  |\u003e measure 1 1\n  |\u003e draw;;\n```\n\n![Quantum circuit](https://raw.githubusercontent.com/dakk/caml_qiskit/master/media/readme_circuit.png)\n\n```ocaml\n(* Start a simulation *)\naer_simulator \"statevector\" \n  |\u003e run qc \n  |\u003e result \n  |\u003e get_counts \n  |\u003e Visualization.plot_histogram;\n```\n\n![Quantum sim res](https://raw.githubusercontent.com/dakk/caml_qiskit/master/media/readme_ressim.png)\n\n\n```ocaml\n(* Run the circuit on real quantum hardware *)\nlet _ = IBMProvider.save_account \"TOKEN\" in\nlet j = IBMProvider.get_backend \"ibmq_london\" prov |\u003e run qc in\nIBMProvider.job_monitor j;\nj \n  |\u003e result \n  |\u003e get_counts \n  |\u003e Visualization.plot_histogram;;\n```\n\n![Quantum sim res](https://raw.githubusercontent.com/dakk/caml_qiskit/master/media/readme_resreal.png)\n\n\n\n## Install\n\n```opam install qiskit```\n\nYou also need to install these python libraries (via pip):\n\n- matplotlib\n- numpy\n- qiskit\n- qiskit_aer\n- pylatexenc\n\nAnd optional for IBM quantum cloud computers:\n- qiskit_ibm_provider\n\n\n## License\n```\nCopyright (c) 2020-2024 Davide Gessa\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdakk%2Fcaml_qiskit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdakk%2Fcaml_qiskit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdakk%2Fcaml_qiskit/lists"}