{"id":25666111,"url":"https://github.com/functionally/haquil","last_synced_at":"2026-05-16T02:39:31.235Z","repository":{"id":184737760,"uuid":"564176476","full_name":"functionally/haquil","owner":"functionally","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-10T06:53:23.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T08:18:19.524Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/functionally.png","metadata":{"files":{"readme":"ReadMe.md","changelog":"ChangeLog.md","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}},"created_at":"2022-11-10T06:36:54.000Z","updated_at":"2022-11-10T18:00:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"f46c0192-6787-43db-b87e-d7a94dc384d3","html_url":"https://github.com/functionally/haquil","commit_stats":null,"previous_names":["functionally/haquil"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/functionally/haquil","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionally%2Fhaquil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionally%2Fhaquil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionally%2Fhaquil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionally%2Fhaquil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/functionally","download_url":"https://codeload.github.com/functionally/haquil/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionally%2Fhaquil/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284807785,"owners_count":27066464,"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-11-17T02:00:06.431Z","response_time":55,"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":"2025-02-24T08:18:19.471Z","updated_at":"2025-11-17T02:03:41.908Z","avatar_url":"https://github.com/functionally.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"quil: An instruction set for quantum computing\n==============================================\n\nThis Haskell library implements the Quil language for quantum computing, as specified in \"A Practical Quantum Instruction Set Architecture\" \u003c\u003chttps://arxiv.org/abs/1608.03355/\u003e\u003e, using the indexing conventions in \u003c\u003chttps://arxiv.org/abs/1711.02086/\u003e\u003e.\n\nPlease report issues at \u003c\u003chttps://bwbush.atlassian.net/projects/HQUIL/issues/\u003e\u003e.\n\n\nExample\n-------\n\nThis example creates a wavefunction for the [Bell state](https://en.wikipedia.org/wiki/Bell_state) and then performs a measurement on its highest qubit.\n\n\t\u003e import Control.Monad.Random (evalRandIO)\n\t\u003e import Data.Qubit ((^^*), groundState, measure)\n\t\u003e import Data.Qubit.Gate (h, cnot)\n\t\n\t\u003e -- Construct the Bell state.\n\t\u003e let bell = [h 0, cnot 0 1] ^^* groundState 2\n\t\u003e bell\n\t0.7071067811865475|00\u003e + 0.7071067811865475|11\u003e @ [1,0]\n\t\n\t\u003e -- Measure the Bell wavefunction.\n\t\u003e bell' \u003c- evalRandIO $ measure [1] bell\n\t\u003e bell'\n\t([(1,0)],1.0|00\u003e @ [1,0])\n\t\n\t\u003e -- Measure it again.\n\t\u003e evalRandIO $ measure [1] bell'\n\t([(1,0)],1.0|00\u003e @ [1,0])\n\t\n\t\u003e -- Measure another Bell wavefunction.\n\t\u003e evalRandIO $ measure [1] bell\n\t([(1,0)],1.0|00\u003e @ [1,0])\n\t\n\t\u003e -- Measure another Bell wavefunction.\n\t\u003e evalRandIO $ measure [1] bell\n\t([(1,1)],1.0|11\u003e @ [1,0])\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunctionally%2Fhaquil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunctionally%2Fhaquil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunctionally%2Fhaquil/lists"}