{"id":20131282,"url":"https://github.com/glassnotes/ft_qram_circuits","last_synced_at":"2025-04-09T16:40:47.845Z","repository":{"id":50062769,"uuid":"155600936","full_name":"glassnotes/FT_qRAM_Circuits","owner":"glassnotes","description":"Fault-tolerant resource estimation of circuits for quantum RAM","archived":false,"fork":false,"pushed_at":"2019-12-16T21:35:59.000Z","size":42147,"stargazers_count":12,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-23T18:52:11.206Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/glassnotes.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":"2018-10-31T17:52:29.000Z","updated_at":"2024-08-29T23:40:23.000Z","dependencies_parsed_at":"2022-09-23T01:42:03.128Z","dependency_job_id":null,"html_url":"https://github.com/glassnotes/FT_qRAM_Circuits","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glassnotes%2FFT_qRAM_Circuits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glassnotes%2FFT_qRAM_Circuits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glassnotes%2FFT_qRAM_Circuits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glassnotes%2FFT_qRAM_Circuits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glassnotes","download_url":"https://codeload.github.com/glassnotes/FT_qRAM_Circuits/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248068903,"owners_count":21042577,"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","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-11-13T20:47:12.857Z","updated_at":"2025-04-09T16:40:47.825Z","avatar_url":"https://github.com/glassnotes.png","language":"Python","readme":"# Fault-tolerant resource estimation of qRAM circuits.\n\nThis package contains Python classes for each type of circuit (and various parallelized versions) we discuss in [our arXiv preprint](http://arxiv.org/abs/1902.01329).\n*  Bucket brigade circuits (`src/bucket_brigade_circuits.py`)\n*  Basic circuits (`src/basic_circuits.py`)\n*  Hybrid circuits (`src/hybrid_circuits.py`)\n*  Double qRAM circuits (`src/double_qram_circuits.py`) \n\n## Requirements\n\nTo run the data generation scripts:\n* numpy\n\nTo run the analysis notebooks:\n* Jupyter  \n* [Altair data visualization libraries](https://altair-viz.github.io)\n\n## Usage\n\nWithin each class are formulae for the computation of relevant resources such as number of logical qubits, T-gates, Clifford gates, etc. All circuits inherit from a parent class `qRAMCircuit`, which itself inherits from a more general Circuit base class (both found in `src/circuit.py`).\n\nThe file `src/surface_code.py` contains a surface code class that eats circuits and produces the resource estimates. Currently only defect-based estimates are implemented, with lattice surgery methods to be implemented at some point in the future. \n\n\nHere is a simple example:\n\n```python\nfrom basic_circuits import LargeWidthSmallDepth\nfrom surface_code import SurfaceCode\n\n# Instantiate a surface code with some physical assumptions (gate errors, cycle time)\nsurf_code = SurfaceCode(p_in=1e-4, p_g=1e-5, t_sc=200e-9) \n\n# Create a circuit\ncirc = LargeWidthSmallDepth(35, 33) \n\n# Compute resource estimates; returned as dictionaries of parameters \ndefect_est = surf_code.defect_compute_resources(circ)\n```\n\nThe script `scripts/generate_paper_data.py` will produce all the data as it appears in our paper. The relevant data is also included in `data/` and the analysis notebooks are in `analysis/`.\n\nContact odimatteo AT triumf DOT ca for questions/comments, or create an issue if you find any bugs.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglassnotes%2Fft_qram_circuits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglassnotes%2Fft_qram_circuits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglassnotes%2Fft_qram_circuits/lists"}