Skip to content
/ quko Public

Simple quantum CPU simulator in Kotlin

License

Notifications You must be signed in to change notification settings

johnhearn/quko

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Quantum CPU Simulator in Kotlin

This collection of classes simulates a system of qubits, at the moment up to about 10 of them.

The simplest possible program for a quantum 8-sided dice:

import quam.*

val qubits = Qubits(3).hadamard(0..2)
print(qubits.measureAll().toInt())

This script creates a 3-bit register, applies Hadamard gates to each one and then measures the result as an integer.

For more examples see the features package.

About

Simple quantum CPU simulator in Kotlin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages