Skip to content

A Random Number Library in Q# written in DotNetCore 2.1, using Qbits to randomly generate numbers

Notifications You must be signed in to change notification settings

ZelliDev/QSharpRandom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

QSharpRandom

A Random Number Library in Q# written in DotNetCore 2.1, using Qbits to randomly generate numbers

Open Source

QSharpRandom can easily generate random numbers using Quantum Calculation written in Q# (QuantumSharp)

Installation


Download the current release and add it to your project
Download Nuget Package : Microsoft.Quantum.SKD & Microsoft.Quantum.Standard

Usage example

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();
            
        }
    }
}

Release History

  • 0.0.1
    • First Upload Of QSharpRandom

About

A Random Number Library in Q# written in DotNetCore 2.1, using Qbits to randomly generate numbers

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages