-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Rust representation of EquivalenceLibrary
#12585
Commits on Jun 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a8cddcd - Browse repository at this point
Copy the full SHA a8cddcdView commit details
Commits on Jun 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f53b89c - Browse repository at this point
Copy the full SHA f53b89cView commit details
Commits on Jun 11, 2024
-
Add:
EquivalencyLibrary
toqiskit._accelerate.circuit
- Add `get_entry` method to obtain an entry from binding to a `QuantumCircuit`. - Add `rebind_equiv` to bind parameters to `QuantumCircuit`
Configuration menu - View commit details
-
Copy full SHA for a215694 - Browse repository at this point
Copy the full SHA a215694View commit details
Commits on Jun 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7d0f4de - Browse repository at this point
Copy the full SHA 7d0f4deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f85dc0 - Browse repository at this point
Copy the full SHA 0f85dc0View commit details -
Configuration menu - View commit details
-
Copy full SHA for f73581e - Browse repository at this point
Copy the full SHA f73581eView commit details
Commits on Jun 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 57e0ef8 - Browse repository at this point
Copy the full SHA 57e0ef8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9eddbbf - Browse repository at this point
Copy the full SHA 9eddbbfView commit details -
Add: Stable infrastructure for EquivalenceLibrary
- TODO: Make elements pickleable.
Configuration menu - View commit details
-
Copy full SHA for 11611e2 - Browse repository at this point
Copy the full SHA 11611e2View commit details
Commits on Jun 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a013d5b - Browse repository at this point
Copy the full SHA a013d5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bf0316 - Browse repository at this point
Copy the full SHA 1bf0316View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab57e3e - Browse repository at this point
Copy the full SHA ab57e3eView commit details
Commits on Jun 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0e822b5 - Browse repository at this point
Copy the full SHA 0e822b5View commit details
Commits on Jun 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6a033c9 - Browse repository at this point
Copy the full SHA 6a033c9View commit details -
Fix: Use EdgeReferences instead of edge_indices.
- Remove stray comment. - Use match instead of matches!.
Configuration menu - View commit details
-
Copy full SHA for b04cae2 - Browse repository at this point
Copy the full SHA b04cae2View commit details
Commits on Jun 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5a3bf2b - Browse repository at this point
Copy the full SHA 5a3bf2bView commit details
Commits on Jun 21, 2024
-
Fix: Use StableDiGraph for more stable indexing.
- Remove required py argument for get_entry. - Reformat `to_pygraph` to use `add_nodes_from` and `add_edges_from`. - Other small fixes.
Configuration menu - View commit details
-
Copy full SHA for 38436cd - Browse repository at this point
Copy the full SHA 38436cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for db6acb4 - Browse repository at this point
Copy the full SHA db6acb4View commit details -
Fix: Use
clone
instead ofto_owned
- Use `clone_ref` for the PyObject Graph instance.
Configuration menu - View commit details
-
Copy full SHA for e16e57b - Browse repository at this point
Copy the full SHA e16e57bView commit details
Commits on Jun 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b8bd422 - Browse repository at this point
Copy the full SHA b8bd422View commit details -
Fix: Use
OperationTypeConstruct
instead ofCircuitInstruction
- Use `convert_py_to_operation_type` to correctly extract Gate instances into rust operational datatypes. - Add function `get_sources_from_circuit_rep` to not extract circuit data directly but only the necessary data. - Modify failing test due to different mapping. (!!) - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for fb1652c - Browse repository at this point
Copy the full SHA fb1652cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 139af74 - Browse repository at this point
Copy the full SHA 139af74View commit details
Commits on Jun 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 27b25e3 - Browse repository at this point
Copy the full SHA 27b25e3View commit details
Commits on Jun 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ab84d04 - Browse repository at this point
Copy the full SHA ab84d04View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6dec921 - Browse repository at this point
Copy the full SHA 6dec921View commit details -
Configuration menu - View commit details
-
Copy full SHA for 785564f - Browse repository at this point
Copy the full SHA 785564fView commit details -
Fix: Make
CircuitRep
attributes OneCell-like.- Attributes from CircuitRep are only written once, reducing the overhead. - Modify `__setstate__` to avoid extra conversion. - Remove `get_sources_from_circuit_rep`.
Configuration menu - View commit details
-
Copy full SHA for 3b954e4 - Browse repository at this point
Copy the full SHA 3b954e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 48bb8eb - Browse repository at this point
Copy the full SHA 48bb8ebView commit details
Commits on Jun 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ffa0a81 - Browse repository at this point
Copy the full SHA ffa0a81View commit details
Commits on Jun 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9a7d9a0 - Browse repository at this point
Copy the full SHA 9a7d9a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e2c8dcb - Browse repository at this point
Copy the full SHA e2c8dcbView commit details -
Remove: Default initialization methods from custom datatypes.
- Use `__getnewargs__ instead.
Configuration menu - View commit details
-
Copy full SHA for dc3041e - Browse repository at this point
Copy the full SHA dc3041eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a072635 - Browse repository at this point
Copy the full SHA a072635View commit details
Commits on Jul 1, 2024
-
Fix: Further improvements to pickling
- Use python structures to avoid extra conversions. - Add rust native `EquivalenceLibrary.keys()` and have the python method use it.
Configuration menu - View commit details
-
Copy full SHA for 77dbec8 - Browse repository at this point
Copy the full SHA 77dbec8View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd0b36e - Browse repository at this point
Copy the full SHA cd0b36eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 73e5b5b - Browse repository at this point
Copy the full SHA 73e5b5bView commit details
Commits on Jul 2, 2024
-
Fix: Use
PyList
and iterators when possible to skip extra conversion.- Use a `py` token instead of `Python::with_gil()` for `rebind_params`. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 72e1c33 - Browse repository at this point
Copy the full SHA 72e1c33View commit details
Commits on Jul 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 17eb9d2 - Browse repository at this point
Copy the full SHA 17eb9d2View commit details -
Fix: improvements on rust native methods
- Accept `Operations` and `[Param]` instead of the custom `GateOper` when calling from rust. - Build custom `GateOper` inside of class.
Configuration menu - View commit details
-
Copy full SHA for 9d39cf6 - Browse repository at this point
Copy the full SHA 9d39cf6View commit details -
Remove:
add_equiv
,set_entry
from rust-native methods.- Add `node_index` Rust native method. - Use python set comparison for `Param` check.
Configuration menu - View commit details
-
Copy full SHA for e9e3921 - Browse repository at this point
Copy the full SHA e9e3921View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5519659 - Browse repository at this point
Copy the full SHA 5519659View commit details
Commits on Jul 5, 2024
-
- Fix comparison methods for `Key`, `Equivalence`, `EdgeData` and `NodeData` to account for the removal of `PartialEq` for `Param`.
Configuration menu - View commit details
-
Copy full SHA for bf9aedd - Browse repository at this point
Copy the full SHA bf9aeddView commit details
Commits on Jul 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 82a456e - Browse repository at this point
Copy the full SHA 82a456eView commit details
Commits on Jul 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 41764f2 - Browse repository at this point
Copy the full SHA 41764f2View commit details -
Fix: Leverage usage of
CircuitData
for accessing the `QuantumCircui……t` intructions in rust. - Change implementation of `CircuitRef, to leverage the use of `CircuitData`.
Configuration menu - View commit details
-
Copy full SHA for 08915c0 - Browse repository at this point
Copy the full SHA 08915c0View commit details
Commits on Jul 15, 2024
-
Add:
data()
method to avoid extractingCircuitData
- Add `py_clone` to perform shallow clones of a `CircuitRef` object by cloning the references to the `QuantumCircuit` object. - Extract `num_qubits` and `num_clbits` for CircuitRep. - Add wrapper over `add_equivalence` to be able to accept references and avoid unnecessary cloning of `GateRep` objects in `set_entry`. - Remove stray mutability of `entry` in `set_entry`.
Configuration menu - View commit details
-
Copy full SHA for d24c134 - Browse repository at this point
Copy the full SHA d24c134View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd582f0 - Browse repository at this point
Copy the full SHA bd582f0View commit details
Commits on Jul 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f61288f - Browse repository at this point
Copy the full SHA f61288fView commit details
Commits on Jul 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5a2c57b - Browse repository at this point
Copy the full SHA 5a2c57bView commit details
Commits on Jul 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6772305 - Browse repository at this point
Copy the full SHA 6772305View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e44817 - Browse repository at this point
Copy the full SHA 1e44817View commit details
Commits on Jul 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 22210e3 - Browse repository at this point
Copy the full SHA 22210e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for c99ca3f - Browse repository at this point
Copy the full SHA c99ca3fView commit details
Commits on Jul 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 561553a - Browse repository at this point
Copy the full SHA 561553aView commit details
Commits on Jul 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d257db1 - Browse repository at this point
Copy the full SHA d257db1View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd2773a - Browse repository at this point
Copy the full SHA dd2773aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e7b3cb0 - Browse repository at this point
Copy the full SHA e7b3cb0View commit details
Commits on Jul 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for aa626b9 - Browse repository at this point
Copy the full SHA aa626b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1aaf17a - Browse repository at this point
Copy the full SHA 1aaf17aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba90411 - Browse repository at this point
Copy the full SHA ba90411View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f4bfb7 - Browse repository at this point
Copy the full SHA 9f4bfb7View commit details
Commits on Aug 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d59f0db - Browse repository at this point
Copy the full SHA d59f0dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d3a164 - Browse repository at this point
Copy the full SHA 0d3a164View commit details
Commits on Aug 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for feff6eb - Browse repository at this point
Copy the full SHA feff6ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6554b38 - Browse repository at this point
Copy the full SHA 6554b38View commit details -
Configuration menu - View commit details
-
Copy full SHA for 132b6be - Browse repository at this point
Copy the full SHA 132b6beView commit details
Commits on Aug 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3dbcc41 - Browse repository at this point
Copy the full SHA 3dbcc41View commit details -
Configuration menu - View commit details
-
Copy full SHA for c48f0da - Browse repository at this point
Copy the full SHA c48f0daView commit details -
Configuration menu - View commit details
-
Copy full SHA for d12dee6 - Browse repository at this point
Copy the full SHA d12dee6View commit details
Commits on Aug 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bc9c83f - Browse repository at this point
Copy the full SHA bc9c83fView commit details
Commits on Aug 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fda119d - Browse repository at this point
Copy the full SHA fda119dView commit details
Commits on Aug 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f44eaba - Browse repository at this point
Copy the full SHA f44eabaView commit details -
Fix: Update
EquivalenceLibrary
to storeCircuitData
.- The equivalence library will now only store `CircuitData` instances as it does not need to call python directly to re-assign parameters. - An `IntoPy<PyObject>` trait was adapted so that it can be automatically converted to a `QuantumCircuit` instance using `_from_circuit_data`. - Updated all tests to use register-less qubits in circuit comparison. - Remove `num_qubits` and `num_clbits` from `CircuitRep`.
Configuration menu - View commit details
-
Copy full SHA for 3479254 - Browse repository at this point
Copy the full SHA 3479254View commit details -
Configuration menu - View commit details
-
Copy full SHA for c433c87 - Browse repository at this point
Copy the full SHA c433c87View commit details
Commits on Sep 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c77af69 - Browse repository at this point
Copy the full SHA c77af69View commit details
Commits on Sep 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 82a6dcf - Browse repository at this point
Copy the full SHA 82a6dcfView commit details
Commits on Sep 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1a21204 - Browse repository at this point
Copy the full SHA 1a21204View commit details
Commits on Sep 20, 2024
-
Fix: Review comments and ownership issues.
- Add `from_operation` constructor for `Key`. - Made `py_has_entry()` private, but kept its main method public. - Made `set_entry` more rust friendly. - Modify `add_equivalence` to accept a slice of `Param` and use `Into` to convert it into a `SmallVec` instance.
Configuration menu - View commit details
-
Copy full SHA for b7c6316 - Browse repository at this point
Copy the full SHA b7c6316View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8e7cff - Browse repository at this point
Copy the full SHA b8e7cffView commit details
Commits on Sep 23, 2024
-
Fix: Use maximum possible integer value for Key in basis_translator.
- Add method to immutably borrow the `EquivalenceLibrary`'s graph.
Configuration menu - View commit details
-
Copy full SHA for e7d99bc - Browse repository at this point
Copy the full SHA e7d99bcView commit details
Commits on Sep 24, 2024
-
Fix: Use generated string, instead of large int
- Using large int as the key's number of qubits breaks compatibility with qpy, use a random string instead.
Configuration menu - View commit details
-
Copy full SHA for bf7486c - Browse repository at this point
Copy the full SHA bf7486cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 56278bc - Browse repository at this point
Copy the full SHA 56278bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 11f0470 - Browse repository at this point
Copy the full SHA 11f0470View commit details