https://github.com/cqcl/pytket-pecos
Emulation of pytket circuits using PECOS
https://github.com/cqcl/pytket-pecos
Last synced: about 1 year ago
JSON representation
Emulation of pytket circuits using PECOS
- Host: GitHub
- URL: https://github.com/cqcl/pytket-pecos
- Owner: CQCL
- License: apache-2.0
- Created: 2023-11-16T15:40:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-28T15:54:05.000Z (over 1 year ago)
- Last Synced: 2025-05-07T04:47:51.766Z (about 1 year ago)
- Language: Python
- Size: 63.5 KB
- Stars: 1
- Watchers: 8
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pytket-pecos
This package enables emulation of [pytket](https://github.com/CQCL/tket)
circuits using the
[PECOS](https://github.com/PECOS-packages/PECOS/tree/development) emulator.
## Installation
Installation requires Python 3.10, 3.11, 3.12 or 3.13. Linux, MacOS and Windows
are all supported.
### From pypi
```shell
pip install pytket_pecos
```
### From source
```shell
# Clone the pytket-pecos repo:
git clone git@github.com:CQCL/pytket-pecos.git
# Set up the virtual environment
cd pytket-pecos
python -m venv env
. env/bin/activate
pip install -U pip flit wheel
# Install pytket-pecos
flit install
```
## Testing
To run the unit tests:
```shell
python -m unittest test.test_emulator
```