Latest 7.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 quantum circuit simulator in Swift

CI Status
codecov.io
Version
platforms

In this repository you can find a quantum circuit simulator written in Swift and speeded up with Accelerate.framework. Along side the simulator there is also a genetic algorithm to automatically generate circuits able to solve a given quantum problem.

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

Check DeutschAlgorithm.playground for the actual code.

Or check Genetic.playground to see how to configure the genetic algorithm to produce a quantum circuit:

Circuit generated with a genetic algorithm

Latest podspec

{
    "name": "SwiftQuantumComputing",
    "version": "7.0.0",
    "summary": "A quantum circuit simulator.",
    "description": "A quantum circuit simulator written in Swift and speeded up with Accelerate.framework. It also counts with a genetic algorithm to find a circuit that solves a given quantum problem.",
    "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": "7.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_versions": "4.2",
    "frameworks": "Accelerate"
}

Pin It on Pinterest

Share This