https://github.com/silq-lang/silq
https://github.com/silq-lang/silq
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/silq-lang/silq
- Owner: silq-lang
- License: bsl-1.0
- Created: 2019-09-06T07:02:21.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-01-30T22:14:11.000Z (10 months ago)
- Last Synced: 2025-01-30T23:19:37.727Z (10 months ago)
- Language: Q#
- Size: 3.37 MB
- Stars: 618
- Watchers: 53
- Forks: 52
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-programming-languages - Silq - Silq is a new high-level programming language for quantum computing with a strong static type system (Uncategorized / Uncategorized)
README
# Silq
Silq is a high-level programming language for quantum computing with a strong static type system.
More information: https://silq.ethz.ch
## Installation
To install via vscode without building from source, see: https://silq.ethz.ch/install
## Build Instructions
### GNU/Linux and OSX
#### Quick build
1. Run `dependencies-release.sh` to download the LDC D compiler into the local directory.
2. Run `build-release.sh` to build Silq.
##### Additional information
Silq is written in the D programming language. D compilers are available at http://dlang.org/download.html.
### FreeBSD
Silq can be built from a port or installed as a binary package on FreeBSD/amd64.
Other FreeBSD platforms do currently lack the D language support required by silq.
To install from source, assuming an up-to-date ports tree is available:
```
$ cd /usr/ports/lang/silq
$ make install
```
(Or use portmaster or any of the other ports management tools available in FreeBSD ...)
To install from a package:
```
$ pkg install silq
```
### Other platforms
The build instructions given here are for GNU/Linux and OSX. Silq can also be built on other platforms.
Feel free to write a pull request with working build scripts for your favourite platform.
### Example
```
$ ./dependencies-release.sh && ./build-release.sh
```
## Using Silq
Run `./silq example.slq`, where `example.slq` is a Silq source file to type check that source file.
Run `./silq example.slq --run`, where `example.slq` is a Silq source file to type check and simulate the main function in that source file.
### Additional command-line options
Run `./silq --help` to display information about supported command-line options.