Prepare Register

QSharp | New Random Register

Register Preparation

Prepare a 3 qubit register using your own amplitude values, which must be values between 0.0 and 1.0. A register must be normalised, which means that the values supplied here will be subject to the normalisation calculation.

Let CoefficientSet = { 0.0, 0.1, ... 0.9, 1.0 }	//	Complex number set

Let C ∈ CoefficientSet;	//	Qubit coefficients C is an element of CoefficientSet
 

Read more about using the NORMALISE command.



 

Copyright © 2024 carlbelle.com