Skip to content

Commit

Permalink
add signed library
Browse files Browse the repository at this point in the history
  • Loading branch information
sezna committed Aug 14, 2024
1 parent caa1d82 commit a64c788
Show file tree
Hide file tree
Showing 6 changed files with 848 additions and 262 deletions.
10 changes: 10 additions & 0 deletions library/fixed_point/qsharp.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
{
"author": "Microsoft",
"license": "MIT",
"dependencies": {
"Unstable": {
"github": {
"owner": "microsoft",
"repo": "qsharp",
"ref": "main",
"path": "library/unstable"
}
}
},
"files": [
"src/Addition.qs",
"src/Comparison.qs",
Expand Down
3 changes: 0 additions & 3 deletions library/fixed_point/src/Polynomial.qs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ operation EvaluatePolynomialFxP(coefficients : Double[], fpx : FixedPoint, resul
}
controlled (controls, ...) {
IdenticalFormatFactFxP([fpx, result]);
AssertAllZeroFxP(result);
let degree = Length(coefficients) - 1;
let p = fpx::IntegerBits;
let n = Length(fpx::Register);
Expand Down Expand Up @@ -76,7 +75,6 @@ operation EvaluateEvenPolynomialFxP(coefficients : Double[], fpx : FixedPoint, r
}
controlled (controls, ...) {
IdenticalFormatFactFxP([fpx, result]);
AssertAllZeroFxP(result);
let halfDegree = Length(coefficients) - 1;
let n = Length(fpx::Register);

Expand Down Expand Up @@ -114,7 +112,6 @@ operation EvaluateOddPolynomialFxP(coefficients : Double[], fpx : FixedPoint, re
}
controlled (controls, ...) {
IdenticalFormatFactFxP([fpx, result]);
AssertAllZeroFxP(result);
let halfDegree = Length(coefficients) - 1;
let n = Length(fpx::Register);
if halfDegree >= 0 {
Expand Down
1 change: 0 additions & 1 deletion library/modular/qsharp.json

This file was deleted.

258 changes: 0 additions & 258 deletions library/modular/src/modular.qs

This file was deleted.

4 changes: 4 additions & 0 deletions library/signed/qsharp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"author": "Microsoft",
"license": "MIT"
}
Loading

0 comments on commit a64c788

Please sign in to comment.