This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Dump the Bloch sphere coordinates of a Qubit (from the simulator) #1049
Open
Description
Please describe what you would like the feature to accomplish.
I'd like to dump a QuBit from the simulator in the form of Bloch sphere coordinates
Describe the solution you'd like
use qb1 = Qubit();
DumpRegisterAsBlochSphereCoordinates((),[qb1])
Describe alternatives you've considered
I was thinking about dumping the state from the simulator into a text file, parse the text file and calculate the Bloch sphere coordinates.
Additional context
You could use https://docs.microsoft.com/en-us/qsharp/api/qsharp/microsoft.quantum.preparation.blochspherecoordinates