TransWikia.com

How to get state vector probabilities in Q#

Quantum Computing Asked by user12910 on September 15, 2020

Is there a similare function in Q# like Statevector.probabilities in Qiskit to get state vector probability, for example, if my circuit contains one qubit with one $H$ gate, the function returns something like [0.5, 0.5].

One Answer

You may be looking for DumpMachine which will gove you all the information about the whole quantum machine including complex amplitudes and phases. You can find the tutorials here : here

Correct answer by Jonathcraft on September 15, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP