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: 7 months 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-24T04:28:37.000Z (over 2 years ago)
- Last Synced: 2025-03-06T07:50:45.405Z (11 months ago)
- Topics: go, golang, quantum, quantum-computing
- Language: Go
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Quantum Simulator in Go
[](https://pkg.go.dev/github.com/splch/quantumsimulator)
[](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