qiskit
qiskit copied to clipboard
Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.
### Summary This commit splits out the Python only component of the DAGCircuit struct in Rust. The DAGCircuit struct has two fields that explicitly require Python, `metadata` and `duration`, and...
_repr_png_ in QuantumCircuit allows nice output when circuits are the last stmt in jupyter notebooks
By extending `QuantumCircuit` with `_ipython_display_` "drawing" circuits in jupyter notebooks is even more direct. Before, `qc.draw('mpl')` needs to be used. This PR chooses `'mpl'` drawer if matplotlib is installed, `'text'`...
### What should we add? Since #14006 merged the output `libqiskit` standalone dylib that we build from the cext crate now requires `libpython`. This is only because the `CircuitData` Rust...
### Summary Based off of the PR on to_matrix in this class #15022 ### Details and comments
Currently there is no way for us in Rust to retrieve the Python class name of instructions which are natively represented in Rust without using a Python token. The way...