TeamGraphix / graphix

measurement-based quantum computing (MBQC) compiler and simulator
https://graphix.readthedocs.io
Apache License 2.0
55 stars 20 forks source link

Add methods to `Statevec` #100

Open king-p3nguin opened 7 months ago

king-p3nguin commented 7 months ago

The following methods may improve the utility of Statevec:

masa10-f commented 7 months ago

@king-p3nguin
Hi! I have a question about one of the methods you show. Would you explain the more detail of .to_dict()? I don't grasp the overview of this method.

king-p3nguin commented 7 months ago

@masa10-f I was thinking of what Qiskit does in its method: https://qiskit.org/documentation/stubs/qiskit.quantum_info.Statevector.html#qiskit.quantum_info.Statevector.to_dict

The only difference is that graphix adopts bit-endian, whereas Qiskit uses little-endian.