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 was archived by the owner on Jan 12, 2024. It is now read-only.
Describe the bug
When inserting R(PauliX, PI(), q) or R(PauliY, PI(), q) into the program, and using DumpMachine to output the qubit states, the results of |0 > in QuantumSimulator seems like wrong.
To Reproduce
namespace NameSpace {
open Microsoft.Quantum.Intrinsic;
open Microsoft.Quantum.Math;
open Microsoft.Quantum.Diagnostics;
@EntryPoint()
operation main() : Unit {
use q = Qubit();
R(PauliX, PI(), q);
DumpMachine();
Reset(q);
}
}
Real behavior
command:dotent run
|0⟩ 0.000000 + 0.000000 i == * [ 0.000000 ] --- [ 0.00000 rad ]
|1⟩ 0.000000 + -1.000000 i == ******************** [ 1.000000 ] ↓ [ -1.57080 rad ]
command:dotnet run -s SparseSimulator
|1⟩ 1.000000 + 0.000000 i == ******************** [ 1.000000 ] --- [ 0.00000 rad ]
System information
operating system : Windows10 & Ubuntu18.04