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.
CoveX is available on NuGet:
dotnet add package CoveX.LocalSimulation
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());
CoveX is released under the MIT License. See LICENSE file for details.
Vyron Vasileiadis hi@fedonman.com
- My BSc thesis on quantum computing: https://fedonman.com/BSc-Thesis-Vyron-Vasileiadis.pdf