Skip to content
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
@RufusJWB

Description

@RufusJWB

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: target machinesTarget machines like the quantum, trace, or Toffoli simulatorsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions