Skip to content
No description, website, or topics provided.
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Generators
Types
.gitattributes
.gitignore
QuantumCSharp.dll
QuantumRandomNumbers.csproj
README.md

README.md

QuantumRandomNumberGenerator

This project uses a QuantumCSharp library. This library is available here: https://github.com/spisiak/QuantumCSharp

Example:

using QuantumCSharp;
using QuantumCSharp.HistoryResult;
using QuantumCSharp.Ibm;
using QuantumRandomNumbers;
using System;

namespace TestApp
{
   class Program
   {
       static void Main(string[] args)
       {
           HistoryResult program = new HistoryResult(new QuantumProgramOption()
           {
               Email = "", // put your email
               Password = "", // put your password
               Device = IbmQXDevices.ibmqx5,
               MaxCredits = 15,
               
           });

           QuantumRandomNumberGenerator qrng = new QuantumRandomNumberGenerator();
           var random_number = qrng.GenerateNumber(program, "identiciator-of-history-item");

           if (random_number != null)
           {
               Console.WriteLine("Random number:" + random_number.ToString());
           }

           Console.WriteLine("Press any key to continue ...");
           Console.ReadLine();

       }
   }
}

You can’t perform that action at this time.