You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
When I try and run a function that uses DoubleAsInt() I get the error Cannot create an instance of Microsoft.Quantum.Convert.DoubleAsInt because it is an abstract class.
To Reproduce
open Microsoft.Quantum.Convert;
function TestDoubleAsInt(): Int {
let value = 18.0;
let result = DoubleAsInt(value);
return result;
}
%simulate TestDoubleAsInt
Expected behavior
I would expect the output to be 18
Actual behavior
I get the error Cannot create an instance of Microsoft.Quantum.Convert.DoubleAsInt because it is an abstract class.
Describe the bug
When I try and run a function that uses
DoubleAsInt()
I get the errorCannot create an instance of Microsoft.Quantum.Convert.DoubleAsInt because it is an abstract class.
To Reproduce
Expected behavior
I would expect the output to be
18
Actual behavior
I get the error
Cannot create an instance of Microsoft.Quantum.Convert.DoubleAsInt because it is an abstract class.
System information
OS: Windows
.NET Core Version: 6.0.100
Python Version: 3.9.12
Additional context
Q# reference for function: https://docs.microsoft.com/en-us/qsharp/api/qsharp/microsoft.quantum.convert.doubleasint
The text was updated successfully, but these errors were encountered: