Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 2 DOI reference(s) in README -
✓Academic publication links
Links to: arxiv.org, acm.org, aps.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.5%) to scientific vocabulary
Repository
Implementation of the gate-by-gate sampling algorithm.
Basic Info
- Host: GitHub
- Owner: asciineuron
- License: apache-2.0
- Language: Python
- Default Branch: main
- Size: 19.2 MB
Statistics
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 7
- Releases: 1
Metadata Files
README.md
BGLS
BGLS is a Python package that implements the Bravyi, Gosset, and Liu Sampling algorithm presented in How to simulate quantum measurement without computing marginals (Phys. Rev. Lett.) (arXiv) for Cirq circuits.
Quickstart
Installation
bash
pip install bgls
Example
```python import cirq import bgls
Example circuit to run.
qubits = cirq.LineQubit.range(2) circuit = cirq.Circuit( cirq.H.on(qubits[0]), cirq.CNOT.on(qubits), cirq.measure(qubits, key="z") )
Run the circuit with BGLS.
simulator = bgls.Simulator( initialstate=cirq.StateVectorSimulationState(qubits=qubits, initialstate=0), applyop=cirq.protocols.acton, computeprobability=bgls.born.computeprobabilitystatevector, ) results = simulator.run(circuit, repetitions=10) print(results.histogram(key="z")) ```
Sample output:
text
Counter({0: 6, 3: 4})
Documentation
See more details and examples in the Documentation for BGLS.
Citing BGLS
If you use BGLS in your research, please reference the BGLS whitepaper using the bibtex entry found in CITATION.bib.
Owner
- Name: Alex Shapiro
- Login: asciineuron
- Kind: user
- Repositories: 2
- Profile: https://github.com/asciineuron
Citation (CITATION.bib)
@article{bgls,
title = {BGLS: A Python Package for the Gate-by-Gate Sampling Algorithm to Simulate Quantum Circuits},
author = {Alex Shapiro and Ryan LaRose},
journal = {ACM Digital Library},
year = {2023},
month = {Nov},
doi = {10.1145/3624062.3624215},
url = {https://doi.org/10.1145/3624062.3624215},
publisher = {SC-W '23: Proceedings of the SC '23 Workshops of The International Conference on High Performance Computing, Network, Storage, and Analysis},
volume = {Nov 2023},
pages = {1436-1442},
}
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 14
- Total pull requests: 39
- Average time to close issues: about 1 month
- Average time to close pull requests: 9 days
- Total issue authors: 2
- Total pull request authors: 3
- Average comments per issue: 1.21
- Average comments per pull request: 1.1
- Merged pull requests: 37
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 7
- Pull requests: 21
- Average time to close issues: 4 days
- Average time to close pull requests: 1 day
- Issue authors: 2
- Pull request authors: 3
- Average comments per issue: 1.43
- Average comments per pull request: 1.05
- Merged pull requests: 19
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- rmlarose (13)
- asciineuron (1)
Pull Request Authors
- rmlarose (26)
- asciineuron (11)
- chiragbhansali (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 20 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 2
pypi.org: bgls
Implementation of the gate-by-gate sampling algorithm.
- Homepage: https://github.com/asciineuron/bgls
- Documentation: https://github.com/asciineuron/bgls
- License: Apache 2.0
-
Latest release: 0.2.0
published over 2 years ago