quantumlib / Qualtran

Qᴜᴀʟᴛʀᴀɴ is a Python library for expressing and analyzing Fault Tolerant Quantum algorithms.
https://qualtran.readthedocs.io/en/latest/
Apache License 2.0
132 stars 35 forks source link

Add build_call_graph and symbolic resource estimation to MultiControlPauli #1034

Closed tanujkhattar closed 1 month ago

tanujkhattar commented 1 month ago

Pulled out from https://github.com/quantumlib/Qualtran/pull/1017

tanujkhattar commented 1 month ago

I don't include the symbolic example in the notebook because we still can't access the signature (and therefore call show_bloq() etc.) on the symbolic bloq since the shape is symbolic. We still need more work for all these bloqs to either

(a) Support symbolic shape when instantiating a register (less likely) (b) Refactor the bloqs so that the control register is of type QAny(symbolic_size) with shape=(). (more likely)

fdmalone commented 1 month ago

Ok!

mpharrigan commented 1 month ago

Can you open an issue to track the outstanding symbolic ctrl shaped register problem