semvec/pypi-packages huggingface dataset:
stoqcompiler 0.2.0
Toolset for stochastic approximate quantum compilation.
Requires Python: >=3.6

[![Downloads](https://pepy.tech/badge/stoqcompiler)](https://pepy.tech/project/stoqcompiler)
[![Python package](https://github.com/rmshaffer/stoq-compiler/workflows/Python%20package/badge.svg)](https://github.com/rmshaffer/stoq-compiler/actions/)
[![codecov](https://codecov.io/gh/rmshaffer/stoq-compiler/branch/main/graph/badge.svg?token=KTF1NV8X0E)](https://codecov.io/gh/rmshaffer/stoq-compiler)

# stoqcompiler: Toolset for stochastic approximate quantum compilation

The `stoqcompiler` package provides a toolset for stochastic approximate quantum compilation as introduced in [arXiv:2205.13074](https://arxiv.org/abs/2205.13074).

## Installation

The `stoqcompiler` package distribution is hosted on PyPI and can be installed via `pip`:

```
pip install stoqcompiler
```

Alternatively, the package and its requirements can be installed by cloning the repository locally:

```
git clone https://github.com/rmshaffer/stoq-compiler
cd stoq-compiler
pip install -r requirements.txt
pip install -e .
```

## Usage

For examples of using `stoqcompiler`, see the [example notebooks](./examples) and [unit tests](./tests).

## Citation

If you use or refer to this project in any publication, please cite the corresponding paper:

> Ryan Shaffer, Hang Ren, Emiliia Dyrenkova, Christopher G. Yale, Daniel S. Lobser, Ashlyn D. Burch, Matthew N. H. Chow, Melissa C. Revelle, Susan M. Clark, Hartmut HÃ¤ffner. _Efficient verification of continuously-parameterized quantum gates._ [arXiv:2205.13074](https://arxiv.org/abs/2205.13074) (2022).
simple-frequency-counter 0.0.2
Calculate word occurences in txt files inside a given folder.
Requires Python: >=3.7

# SIMPLE FREQUENCY COUNTER
Calculate word occurences in txt files inside a given folder.  

## Usage
```python
from  simple_frequency_counter.counter  import  FrequenciesGenerator

fg = FrequenciesGenerator('my_test_folder')

# print occurences of the word 'example' in 'text1.txt'  
fg.get_frequency('example', 'text1.txt')

# print occurences of the word 'example' in all files 
fg.get_frequency('example')

# print similarity between two file depending on word overlap
fg.calculate_similarity('text2.txt','text1.txt' )
```