A Random Number Library in Q# written in DotNetCore 2.1, using Qbits to randomly generate numbers
QSharpRandom can easily generate random numbers using Quantum Calculation written in Q# (QuantumSharp)
Download the current release and add it to your project
Download Nuget Package : Microsoft.Quantum.SKD & Microsoft.Quantum.Standard
Using the Q# Libary In a Basic C# Application
using System;
using System.Threading.Tasks;
using Microsoft.Quantum.Simulation.Simulators;
using Quantum.QSharpRandom;
namespace Test
{
class Program
{
static async Task Main(string[] args)
{
using var sim = new QuantumSimulator();
var QsharpResponse = await GenerateNumber.Run(sim,50);
Console.WriteLine(QsharpResponse.ToString());
Console.ReadLine();
}
}
}
- 0.0.1
- First Upload Of QSharpRandom