Skip to content

fedonman/covex-quantum-circuit-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CoveX: Quantum Circuit Simulator

Nuget

CoveX is a .NET Core framework for simulating quantum circuits written in C#.

It was originally written in .NET Framework 4.5 in the context of my BSc thesis on quantum computing. It is now updated to .NET Core 3.1 and listed on GitHub for reference reasons. There are no plans for further active development, however some code samples will be created for educational purposes and .NET version may update.

Getting Started

CoveX is available on NuGet:

dotnet add package CoveX.LocalSimulation

Usage Example

Demostrate entanglement via an EPR pair:

// Create a Quantum Register
IQuantumRegister qRegister = new QuantumRegister(2);

// Entangle via Hadamard followed by CNot
(qRegister.SliceTo(0)).OperationHadamard();
qRegister.OperationCNot();

// Measure and display the result
ClassicalResult cResult = qRegister.Measure();
Console.WriteLine("Result: " + cResult.ToString());

License

CoveX is released under the MIT License. See LICENSE file for details.

Author

Vyron Vasileiadis hi@fedonman.com

Links