Latest 4.0.0
Homepage https://github.com/indisoluble/SwiftQuantumComputing
License Apache License, Version 2.0
Platforms ios 11.4, osx 10.13
Frameworks Accelerate
Authors

A Swift quantum circuit simulator

CI Status
codecov.io
Version
platforms

In this repository you can find a quantum circuit simulator written in Swift and with a bit of help of Accelerate.framework.

The code written so far is mostly based on the content of: Quantum Computing for Computer Scientists, with a few tips from Automatic Quantum Computer Programming: A Genetic Programming Approach. It is also inspired by IBM Qiskit.

Usage

To create a circuit gate by gate:

Deutsch's Algorithm

For a more detailed example, check DeutschAlgorithm.playground.

Or you can automatically create a circuit adding at random the gates in a list:

Randomly generated circuit

Check RandomCircuit.playground for an extended example.

Latest podspec

{
    "name": "SwiftQuantumComputing",
    "version": "4.0.0",
    "summary": "A quantum circuit simulator.",
    "description": "A quantum circuit simulator written in Swift and with a bit of help of Accelerate.framework.",
    "homepage": "https://github.com/indisoluble/SwiftQuantumComputing",
    "license": "Apache License, Version 2.0",
    "authors": {
        "Enrique de la Torre": "[email protected]"
    },
    "platforms": {
        "ios": "11.4",
        "osx": "10.13"
    },
    "source": {
        "git": "https://github.com/indisoluble/SwiftQuantumComputing.git",
        "tag": "4.0.0"
    },
    "source_files": "SwiftQuantumComputing/**/*.swift",
    "ios": {
        "source_files": "SwiftQuantumComputing_iOS/**/*.swift",
        "resources": "SwiftQuantumComputing_iOS/**/*.xib"
    },
    "osx": {
        "source_files": "SwiftQuantumComputing_macOS/**/*.swift",
        "resources": "SwiftQuantumComputing_macOS/**/*.xib"
    },
    "swift_version": "4.2",
    "frameworks": "Accelerate"
}

Pin It on Pinterest

Share This