Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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