Skip to content

device.run in tutorial outdated #265

@tcochran-quera

Description

@tcochran-quera

In understanding how to use PyQrack to simulate a squin kernel I turned to the QFT example, which has the following:

Finally, we will run the main function on the PyQrack backend and print the quantum register to see the final state of the qubits after applying the QFT circuit.

device = PyQrack()
qreg = device.run(main)
print(qreg)

But, this seems to only return if each qubit is active or not (not it's quantum state as the text suggests).

@david-pl suggested we should update this to us the StackMemorySimulator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions