Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/splch/quantumsimulator
Simulate quantum circuits, enabling the application of quantum gates and measurement of quantum states.
https://github.com/splch/quantumsimulator
go golang quantum quantum-computing
Last synced: about 1 month ago
JSON representation
Simulate quantum circuits, enabling the application of quantum gates and measurement of quantum states.
- Host: GitHub
- URL: https://github.com/splch/quantumsimulator
- Owner: splch
- License: mit
- Created: 2023-10-18T21:46:24.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-24T04:28:37.000Z (about 1 year ago)
- Last Synced: 2023-10-24T15:33:58.386Z (about 1 year ago)
- Topics: go, golang, quantum, quantum-computing
- Language: Go
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Quantum Simulator in Go
[![PkgGoDev](https://pkg.go.dev/badge/github.com/splch/quantumsimulator)](https://pkg.go.dev/github.com/splch/quantumsimulator)
[![Go Report Card](https://goreportcard.com/badge/github.com/splch/quantumsimulator?style=flat-square)](https://goreportcard.com/report/github.com/splch/quantumsimulator)## Introduction
A simple quantum simulator implemented in Go.
## Requirements
- Go 1.21 or higher
## Usage
To `get`:
```shell
go get github.com/splch/quantumsimulator
```To `run`:
```shell
go run main.go -qubits 3 -shots 10 -ops "H:0,CX:0:1,U:2:0.2:0.3:0.4"
```To `test`:
```shell
go test ./pkg/quantumsimulator/... -v
```To see an example:
[gate_example.go](examples/gate_example.go)
## Contributing
Feel free to contribute to this project. Open an issue or a pull request.
## License
MIT