-
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
Adding Target
and InstructionProperties
representations to rust
#12292
Commits on Apr 4, 2024
-
Initial: Add
Target
class to_accelerate
- Add `Target` class to test mobility between Rust and Python. - Add `add_instruction` method to test compatibility with instructions.
Configuration menu - View commit details
-
Copy full SHA for 5c86791 - Browse repository at this point
Copy the full SHA 5c86791View commit details -
Fix: Remove empty property check
- Property check caused most cases to panic. - Will be commented out and restored at a later time.
Configuration menu - View commit details
-
Copy full SHA for 1d50653 - Browse repository at this point
Copy the full SHA 1d50653View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7135d72 - Browse repository at this point
Copy the full SHA 7135d72View commit details
Commits on Apr 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7d0982e - Browse repository at this point
Copy the full SHA 7d0982eView commit details -
- Instructions property returns all added to the target. - Similar behavior to source.
Configuration menu - View commit details
-
Copy full SHA for ecc4668 - Browse repository at this point
Copy the full SHA ecc4668View commit details -
Chore: comments and deprecated methods
- Add comments to instruction property. - Use new_bound for new PyDicts.
Configuration menu - View commit details
-
Copy full SHA for 506b1bd - Browse repository at this point
Copy the full SHA 506b1bdView commit details -
- Remove redundant transformation of PyObject to PyTuple. - Remove debugging print statement.
Configuration menu - View commit details
-
Copy full SHA for f8064bf - Browse repository at this point
Copy the full SHA f8064bfView commit details -
Add:
InstructionProperties
class and type checkers- Add `InstructionProperties` class to process properties in rust. - Add `is_instance` and `is_class` to identify certain Python objects. - Modify logic of `add_instruction` to use class check. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for e4e53ce - Browse repository at this point
Copy the full SHA e4e53ceView commit details
Commits on Apr 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b15e762 - Browse repository at this point
Copy the full SHA b15e762View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d82845 - Browse repository at this point
Copy the full SHA 3d82845View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa2baab - Browse repository at this point
Copy the full SHA fa2baabView commit details
Commits on Apr 8, 2024
-
Add: Update_from_instruction_schedule_map
- Partial addition from Target.py\ - Introduction of hashable qarg data structure. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 90b7081 - Browse repository at this point
Copy the full SHA 90b7081View commit details -
Add: Complete `update_from_instruction_schedule_map1
- Complete missing procedures in function. - Rename `Qargs` to `HashableVec`. - Make `HashableVec` generic. - Separate `import_from_module_call` into call0 and call1. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for a65bf82 - Browse repository at this point
Copy the full SHA a65bf82View commit details -
Add: instruction_schedule_map property.
- Remove stray print statements. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for c00ab10 - Browse repository at this point
Copy the full SHA c00ab10View commit details
Commits on Apr 9, 2024
-
Fix: Key issue in
update_from_instruction_schedule_map
- Remove all unsafe unwraps
Configuration menu - View commit details
-
Copy full SHA for 10cec4f - Browse repository at this point
Copy the full SHA 10cec4fView commit details
Commits on Apr 10, 2024
-
Fix: Use PyResult Value for void functon
- Update `update_from_instruction_schedule_map to use PyResult and '?' operator. - Use Bound Python objects whenever possible. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 12cccca - Browse repository at this point
Copy the full SHA 12ccccaView commit details -
Add: Python wrapping for Target
- Add temporary _target module for testing. - Remove update_from_instruction_schedule_map function back to python. - Add python properties for all public attributes in rust - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for c3d79ff - Browse repository at this point
Copy the full SHA c3d79ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e2d100 - Browse repository at this point
Copy the full SHA 5e2d100View commit details -
- Add identical method `qargs` to obtain the qargs of a target. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for be6bf15 - Browse repository at this point
Copy the full SHA be6bf15View commit details -
Add:
qargs_for_operation_name
function.- Add function with identical behavior to the original in Target. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 28e2e01 - Browse repository at this point
Copy the full SHA 28e2e01View commit details -
Add: durations method for Target
- Add target module to qiskit init file. - Remove is_instance method. - Modify set_calibration method in InstructionProperty to leave typechecking to Python. - Change rust Target alias to Target2. - Other tweaks and fixes,
Configuration menu - View commit details
-
Copy full SHA for 1f9bdbf - Browse repository at this point
Copy the full SHA 1f9bdbfView commit details
Commits on Apr 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for dd7e115 - Browse repository at this point
Copy the full SHA dd7e115View commit details -
Fix: InstructionProperties could not receive calibrations
- Fix wrong setters/getters for calibration in InstructionProperty object in rust.
Configuration menu - View commit details
-
Copy full SHA for f58fb09 - Browse repository at this point
Copy the full SHA f58fb09View commit details
Commits on Apr 12, 2024
-
Add: more methods to Target in
target.rs
- Add FromPyObject trait to Hashable vec to receive Tuples and transform them directly into this type. - Add operations_for_qargs for Target class in Rust side and Python. - Fix return dict keys for `qargs_for_operation_name`. - Add `timing_constrains` and `operation_from_name` to Python side. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 04bca9f - Browse repository at this point
Copy the full SHA 04bca9fView commit details -
Fix: missing return value in
operations_for_args
- Fix wrong name for function operation_for_qargs. - Fix missing return value in the python side. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for bc089cc - Browse repository at this point
Copy the full SHA bc089ccView commit details -
Fix: Bad compatibility with InstructionProperties
- Make `InstructionProperties` "_calibration" attribute visible. - Removed attribute "calibration", treat as class property. - Other tweaks and fixes
Configuration menu - View commit details
-
Copy full SHA for 6fc8679 - Browse repository at this point
Copy the full SHA 6fc8679View commit details -
Add:
operation_names_for_qargs
to Target- Port class method to rust and connect to Python wrapper. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 3fec978 - Browse repository at this point
Copy the full SHA 3fec978View commit details -
Configuration menu - View commit details
-
Copy full SHA for 01d146a - Browse repository at this point
Copy the full SHA 01d146aView commit details
Commits on Apr 13, 2024
-
Add: instruction_supported method to rust and python:
- Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 020493d - Browse repository at this point
Copy the full SHA 020493dView commit details -
Add: changes to add_instruction function to increase functionality.
- These changes break current functionality of other functions, butemulate intended behavior better. - Fixes coming soon.
Configuration menu - View commit details
-
Copy full SHA for abe88cf - Browse repository at this point
Copy the full SHA abe88cfView commit details -
Fix: Backwards compatibility with
add_instruction
- Fixed wrong additions to HashMaps in the rust side causing instructions to be missing. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 94cbb85 - Browse repository at this point
Copy the full SHA 94cbb85View commit details
Commits on Apr 15, 2024
-
Fix: Gate Map behavior didn't match Qiskit#11422
- Make GateMap use optional values to match behavior of Qiskit#11422. - Define GateMapType for complex type in self.gate_map. - Throw Python KeyError exceptions from the rust side in `update_instruction_properties` and other functions. - Modify logic in subsequent functions that use gate_map optional values. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 3063856 - Browse repository at this point
Copy the full SHA 3063856View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7006e88 - Browse repository at this point
Copy the full SHA 7006e88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 24a2fac - Browse repository at this point
Copy the full SHA 24a2facView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2da6774 - Browse repository at this point
Copy the full SHA 2da6774View commit details
Commits on Apr 16, 2024
-
Add:
build_coupling_map
and helper methods- `build_coupling_map`will remain in Python for now, along with its helper functions. - Make `gate_name_map` visible to python. - Add `coupling_graph` attribute to Target in Rust. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 1fae1d7 - Browse repository at this point
Copy the full SHA 1fae1d7View commit details
Commits on Apr 17, 2024
-
Add:
get_non_global_operation_names
to Target.- Add attributes `non_global_strict_basis` and `non_global_basis` as Optional. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 644089f - Browse repository at this point
Copy the full SHA 644089fView commit details -
- Add properties: operations, operation_names, and physical_qubits. - Reorganize properties placement. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 5d2ba5a - Browse repository at this point
Copy the full SHA 5d2ba5aView commit details -
Add:
from_configuration
classmethod to Target.- Add method that mimics the behavior of the python method. - Change concurrent_measurements to 2d Vec instead of a Vec of sets. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 2f5063e - Browse repository at this point
Copy the full SHA 2f5063eView commit details -
Add: Magic methods to Rust and Python
- Add docstring to __init__. - Add __iter__, __getitem__, __len__, __contains__, keys, values, and items methods to rust. - Add equivalen methods to python + the __str__ method. - Make description an optional attribute in rust. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for fc3b07e - Browse repository at this point
Copy the full SHA fc3b07eView commit details
Commits on Apr 18, 2024
-
Fix: Bugs when fetching qargs or operations
- Fix qarg_for_operation_name logic to account for None and throw correct exceptions. - Stringify description before sending in case of numerical descriptors. - Fix qarg to account for None entry. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for c345397 - Browse repository at this point
Copy the full SHA c345397View commit details -
- Remove _target.py testing file. - Fix incorrect initialization of calibration in InstructionProperties. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 4b5a16d - Browse repository at this point
Copy the full SHA 4b5a16dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 22d1d05 - Browse repository at this point
Copy the full SHA 22d1d05View commit details -
Fix: target not being recognized as a module
- Add target to the pyext crate. - Change placement of target import for alphabetical ordering. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 4b7aed3 - Browse repository at this point
Copy the full SHA 4b7aed3View commit details
Commits on Apr 19, 2024
-
Fix: Change HashMap to IndexMap
- Change from f32 to f64 precision. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for d71e527 - Browse repository at this point
Copy the full SHA d71e527View commit details -
Fix: Move InstructionProperties fully to Rust
- Move InstructionProperties to rust. - Modify gate_map to accept an InstructionProprties object instead of PyObjecy. - Change update_instruction_properties to use Option InstructionProprtyird. - Remove InstructionProperties from target.py - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 25c0595 - Browse repository at this point
Copy the full SHA 25c0595View commit details -
Configuration menu - View commit details
-
Copy full SHA for d97c13b - Browse repository at this point
Copy the full SHA d97c13bView commit details -
Fix: Make Target inherit from Rust
- Make Target inherit from the rust-side Target by using subclass attribute, then extending its functionality using python. - Switch from __init__ to __new__ to adapt to the Target rust class. - Modify every trait that worked with `target._Target` to use `super()` or `self` instead. - Fix repr in InstructionProperties to not show `Some()` when a value exists. - Fix `__str__` method in `Target` to not display "None" if no description is given. - Assume `num_qubits` is the first argument when an integer is provided as a first argument and nothing else is provided for second (Target initializer). - Return a set in operation_names instead of a Vec. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 8e141d9 - Browse repository at this point
Copy the full SHA 8e141d9View commit details -
Fix: Recognize None in
operation_for_qargs
.- Fix module labels for each class in target.rs. - Use py.is_instance instead of passing isinstance to `instruction_supported`. - Modify `operations_for_qargs` to accept optional values less aggressively. Allow it to find instructions with no qargs. (NoneType). - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for ba74a04 - Browse repository at this point
Copy the full SHA ba74a04View commit details
Commits on Apr 21, 2024
-
Fix: Make InstructionProperties subclassable.
- Fix get_non_global_operation_names to accept optional values and fix search set to use sorted values. - Fix __repr__ method in InstructionProperties to add punctuation. - Fix typo in python durations method. - Modify test to overload __new__ method instead of just __init__ (Possible breaking change). -Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 331ab42 - Browse repository at this point
Copy the full SHA 331ab42View commit details -
Configuration menu - View commit details
-
Copy full SHA for db05c90 - Browse repository at this point
Copy the full SHA db05c90View commit details -
Fix: errors in
instruction_properties
and others:- Allow `instruction_properties` method to view optional properties. - Allow `operation_names_for_qargs` to select class instructions when None is passed as a qarg. - Modify __str__ method to display error and duration times as int if the value is 0. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for d2ea839 - Browse repository at this point
Copy the full SHA d2ea839View commit details
Commits on Apr 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 949bd4f - Browse repository at this point
Copy the full SHA 949bd4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c0adb3 - Browse repository at this point
Copy the full SHA 5c0adb3View commit details
Commits on Apr 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fcc7727 - Browse repository at this point
Copy the full SHA fcc7727View commit details -
Configuration menu - View commit details
-
Copy full SHA for b2ce752 - Browse repository at this point
Copy the full SHA b2ce752View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e30296 - Browse repository at this point
Copy the full SHA 9e30296View commit details -
Configuration menu - View commit details
-
Copy full SHA for b637a7f - Browse repository at this point
Copy the full SHA b637a7fView commit details -
Fix:
instruction_supported
method:- Rewrite the logic of instruction_supported due to previous errors in the method. - Move `check_obj_params` to Rust. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 98e2c65 - Browse repository at this point
Copy the full SHA 98e2c65View commit details -
Fix: errors in
from_configuration
class method.- Fix some of the logic when retrieving gates from `name_mapping`. - Remove function arguments in favor of implementing counterpart functions in rust. - Add qubit_props_list_from_props function and return rust datatypes. - Fix wrong error handling procedures when retrieving attributes from backend_property. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for b5c396e - Browse repository at this point
Copy the full SHA b5c396eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 879bcc2 - Browse repository at this point
Copy the full SHA 879bcc2View commit details
Commits on Apr 24, 2024
-
Fix: Import
InstructionScheduleMap
directly instead of passing.- `instruction_schedule_map()` now imports the classtype directly from rust instead of needing it to be passed from python. - Remove unused imports in `target.py`. - Ignore unused arguments in `test_extra_props_str`. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 94a1b53 - Browse repository at this point
Copy the full SHA 94a1b53View commit details
Commits on Apr 25, 2024
-
Docs: Add docstrings to rust functions
- Remove redundant redefinitions in python. - Fix text_signatures for some rust functions. - Added lint exceptions to some necessary imports and function arguments. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for f189528 - Browse repository at this point
Copy the full SHA f189528View commit details -
Add: Make
Target
andInstructionProperties
pickleable.- Add `__getstate__` and `__setstate__` methods to make both rust subclasses pickleable.
Configuration menu - View commit details
-
Copy full SHA for 37fbf90 - Browse repository at this point
Copy the full SHA 37fbf90View commit details -
Fix: Wrong calibration assignment in __setstate__
- Use set_calibration to set the correct calibration argument. - Fix wrong signature in get_non_global_operation_names. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for d2e2338 - Browse repository at this point
Copy the full SHA d2e2338View commit details
Commits on Apr 29, 2024
-
Refactor: HashableVec is now Qarg
- Use `PhysicalQubit` instead of u32 for qargs. - Use a `SmallVec` of size 4 instead of a dynamic Vec. - Default to using the `Hash()` method embedded in `SmallVec`. - Add a Default method to easily unwrap Qarg objects. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for f34ff4b - Browse repository at this point
Copy the full SHA f34ff4bView commit details -
- Remove some redundant cloning in code. - Other small fixes.
Configuration menu - View commit details
-
Copy full SHA for 05ac76a - Browse repository at this point
Copy the full SHA 05ac76aView commit details
Commits on Apr 30, 2024
-
Fix: Remove unnecessary Optional values in gate_map.
- Update every gate_map call to use the new format. - Other small tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 89c7dea - Browse repository at this point
Copy the full SHA 89c7deaView commit details
Commits on May 1, 2024
-
Refactor:
calibration
is forInstructionProperties
- Use python `None` instead of option to store `calibration` in `InstructionProperties`. - Adapt code to these changes. - Remove redundant implementation of Hash in Qargs. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 7d59c6a - Browse repository at this point
Copy the full SHA 7d59c6aView commit details
Commits on May 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 340cf9c - Browse repository at this point
Copy the full SHA 340cf9cView commit details -
Fix: Temporary speedup for
gate_map
access- Added temporary speedups to access the gate_map by returning the values as PyObjects. - Convert qargs to rust tuples instead of initializing a `PyTuple`. - Store `InstructionProperties` as a python ref in gate_map. (Will be changed in future updates). - Other tweaks anf fixes.
Configuration menu - View commit details
-
Copy full SHA for ee6407b - Browse repository at this point
Copy the full SHA ee6407bView commit details
Commits on May 3, 2024
-
Fix: Incorrect extractions for
InstructionProperties
- Fix incorrect conversion of `InstructionProperties` to `Py<InstructionProperties>` - Fix incorrect extraction of qargs in `update_from_instruction_schedule_map`
Configuration menu - View commit details
-
Copy full SHA for a9b2119 - Browse repository at this point
Copy the full SHA a9b2119View commit details -
Configuration menu - View commit details
-
Copy full SHA for 14f80be - Browse repository at this point
Copy the full SHA 14f80beView commit details
Commits on May 5, 2024
-
Fix: Hide all private attributes in
Target
- Hide all private attributes of the `Target` to prevent unecessary cloning. - Other small tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 3d87163 - Browse repository at this point
Copy the full SHA 3d87163View commit details
Commits on May 6, 2024
-
Add: New representation of gate_map using new pyclasses:
- Make Qarg a sequence pyclass. - Make QargPropsMap the new representation of a GateMap value. - Adapt the code to new structure. - TODO: Add missing magic methods for sequence and mapping objects. - Other small tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 83fd1c1 - Browse repository at this point
Copy the full SHA 83fd1c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff3e797 - Browse repository at this point
Copy the full SHA ff3e797View commit details -
Add: Use custom datatypes to return values to Python.
- Add QargSet datatype to return a set of qargs. - Works as return type for `Target.qargs` - Object is has itertype of QargSetIter. - Rename QargPropMap to PropsMap - Use iterator type IterPropsMap - Other small tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for b953605 - Browse repository at this point
Copy the full SHA b953605View commit details
Commits on May 7, 2024
-
Fix: Extend
InstructionProperties
to be subclassable using `__init__:- Made a subclass of `InstructionProperties` that can be extended using an `__init__`method. - Revert previous changes to `test_target.py`. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 5dabaaf - Browse repository at this point
Copy the full SHA 5dabaafView commit details -
Refactor: Split target into its own module
- Reestructure the files to improve readability of code. - `instruction_properties.rs` contaisn the `InstructionProperties` class. - `mod.rs` contains the `Target` class. - `qargs.rs` contains the Qargs struct to store quantum arguments. - `property_map` contains the Qarg: Property Mapping that will be stored in the gate_map. - Add missing methods to PropsMap: - Add `PropsMapKeys` object to store the qargs as a set. - Add methods to compare and access `PropsMapKey`. - Add QargsOrTuple enum in Qargs to parse Qargs instantly.
Configuration menu - View commit details
-
Copy full SHA for 1d98941 - Browse repository at this point
Copy the full SHA 1d98941View commit details
Commits on May 8, 2024
-
Fix: Rest of failing tests in Target
- Modify the `InstructionProperties` python wrapper. - InstructionProperties was not assigning properties to rust side. - Make duration in `InstructionProperties` setable. - Add `__eq__` method for `PropMap` to compare with other dicts. - `PropMapKeys` can only be compared with a Set. - Remove `qargs_for_operation_name` from `target.py` - Other small tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 09cd63d - Browse repository at this point
Copy the full SHA 09cd63dView commit details
Commits on May 9, 2024
-
- GateMap is now its own mapping object. - Add `__setstate__` and `__getstate__` methods for `PropMap` and `GateMap`. - Other small tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for defb0c9 - Browse repository at this point
Copy the full SHA defb0c9View commit details
Commits on May 10, 2024
-
Fix: Make new subclasses pickleable
- Add module location to `PropsMap`, `GateMap`, and `Qargs`. - Added default method to PropMap. - Made default method part of class initializers. - Other smalls tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for ab6c00f - Browse repository at this point
Copy the full SHA ab6c00fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ba35a2 - Browse repository at this point
Copy the full SHA 2ba35a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71873ab - Browse repository at this point
Copy the full SHA 71873abView commit details -
Configuration menu - View commit details
-
Copy full SHA for a4e2025 - Browse repository at this point
Copy the full SHA a4e2025View commit details -
Add:
GateMapKeys
object in GateMap:- Use IndexSet as a base to preserve the insertion order. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 183bb5e - Browse repository at this point
Copy the full SHA 183bb5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e80be4 - Browse repository at this point
Copy the full SHA 2e80be4View commit details -
Fix: Modify
GateMap
to store values in Python heap.- Fix `GateMap.__iter__` to use an IndexKeys iterator. - Other small tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 92b787d - Browse repository at this point
Copy the full SHA 92b787dView commit details
Commits on May 12, 2024
-
Fix: Remove duplicate import of
IndexSet::into_iter
inGateMap
.- Make `__iter__` use the keys() method in `GateMap`.
Configuration menu - View commit details
-
Copy full SHA for 9702ddc - Browse repository at this point
Copy the full SHA 9702ddcView commit details -
Fix:: Adapt to target changes (Qiskit#12288)
- Fix lint stray imports.
Configuration menu - View commit details
-
Copy full SHA for 2d46d87 - Browse repository at this point
Copy the full SHA 2d46d87View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97d9341 - Browse repository at this point
Copy the full SHA 97d9341View commit details
Commits on May 13, 2024
-
Fix: Incorrect creation of parameters in `update_from_instruction_sch…
…edule_map` - Add `tupelize` function to create tuples from non-downcastable items. - Fix creation of Parameters by iterating through members of tuple object and mapping them to parameters in `update_from_instruction_schedule_map`. - Add missing logic for creating a Target with/without `qubit_properties`. - Add tuple conversion of `Qargs` to store items in a dict in `BasisTranslator` and `UnitarySynthesis` passes. - Cast `PropsMap` object to dict when comparing in `test_fake_backends.py`. - Modify logic of helper functions that receive a bound object reference, a second `py` not required as an argument. - Add set operation methods to `GateMapKeys`. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 9df0586 - Browse repository at this point
Copy the full SHA 9df0586View commit details -
- Fix repeated erroneous calls to `add_instruction` in `update_from_instruction_schedule_map` - Add missing condition in `instruction_supported` - Use `IndexSet` instead of `HashSet` for `QargsSet`. - Other small tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 2575431 - Browse repository at this point
Copy the full SHA 2575431View commit details
Commits on May 14, 2024
-
Add: Macro rules for qargs and other sequences.
- Create `QargSet` and `PropsMap` using the new macros. - Return a `TargetOpNames` ordered set to python in `operation_names`. - Remove the Python side `operation_names.` - Fix faulty docstring in `target.py`. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 37070b2 - Browse repository at this point
Copy the full SHA 37070b2View commit details
Commits on May 15, 2024
-
Docs: Add necessary docstrings to all new rust functions.
- Remove duplicate Iterator in GateMap. - Other small tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 7bfb9cd - Browse repository at this point
Copy the full SHA 7bfb9cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for d434f02 - Browse repository at this point
Copy the full SHA d434f02View commit details -
Configuration menu - View commit details
-
Copy full SHA for ada4738 - Browse repository at this point
Copy the full SHA ada4738View commit details
Commits on May 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a957406 - Browse repository at this point
Copy the full SHA a957406View commit details
Commits on May 20, 2024
-
Fix: Use
GILOneCell
and removeQargs
- Use `GILOneCell` to import python modules only once at initialization. - Remove the custom data structure `Qargs` to avoid conversion overhead. - `Qargs` does not use `PhysicalQubits`, `u32` is used instead. - Fix `__setstate__ `and `__getstate__` methods for `PropsMap`, `GateMap`, and `key_like_set_iterator` macro_rule. - Update code to use the new structures. - TODO: Fix broken tests.
Configuration menu - View commit details
-
Copy full SHA for a3fcd78 - Browse repository at this point
Copy the full SHA a3fcd78View commit details -
Configuration menu - View commit details
-
Copy full SHA for aeefdab - Browse repository at this point
Copy the full SHA aeefdabView commit details
Commits on May 22, 2024
-
Fix: Cast
Qargs
toTuple
in specific situations- Use tupleize to cast `Qargs` to `Tuple` in `instructions`. - Use downcast to extract string in `add_instruction`. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for bf1fa67 - Browse repository at this point
Copy the full SHA bf1fa67View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae55a38 - Browse repository at this point
Copy the full SHA ae55a38View commit details
Commits on May 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6e2742d - Browse repository at this point
Copy the full SHA 6e2742dView commit details
Commits on May 28, 2024
-
Add: Make
Target
Representable in Rust- Rename `InstructionProperties` as `BaseInstructionProperties`. - Remove `Calibration` from the rust space. - Restore `gate_map`, `coupling_map`, `instruction_schedule_map`, and `instruction_durations` to rust. - Remove all unnecessary data structures from rust space. - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 1e0f9c0 - Browse repository at this point
Copy the full SHA 1e0f9c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 52dbec0 - Browse repository at this point
Copy the full SHA 52dbec0View commit details
Commits on May 29, 2024
-
Add: rust native functions to target
- Added rust native functionality to target such that a `py` would not be needed to use one. - Add Index trait to make `Target` subscriptable. - Other small tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 31cc1f1 - Browse repository at this point
Copy the full SHA 31cc1f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05ddc79 - Browse repository at this point
Copy the full SHA 05ddc79View commit details -
Fix: Remove all unnecessary python method calls.
- Remove uage of `inspect.isclass`. - Rename `Target` to `BaseTarget` in the rust side. - Rename `err.rs` to `errors.rs`. - Remove rust-native `add_inst` and `update_inst` as Target should not be modified from Rust. - Made `add_instruction` and `update_instruction_properties` private in `BaseTarget`. - Add missing `get` method in `Target`. - Other tweaks and fixes
Configuration menu - View commit details
-
Copy full SHA for d5f635f - Browse repository at this point
Copy the full SHA d5f635fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a0d267 - Browse repository at this point
Copy the full SHA 7a0d267View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee914aa - Browse repository at this point
Copy the full SHA ee914aaView commit details
Commits on May 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for aadfeaa - Browse repository at this point
Copy the full SHA aadfeaaView commit details
Commits on Jun 3, 2024
-
Add: Temporary Instruction representation in rust.
- Add temporary instruction representation to avoid repeated extraction from python.
Configuration menu - View commit details
-
Copy full SHA for 9f582ad - Browse repository at this point
Copy the full SHA 9f582adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 76d1b11 - Browse repository at this point
Copy the full SHA 76d1b11View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22229f0 - Browse repository at this point
Copy the full SHA 22229f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for f4318d2 - Browse repository at this point
Copy the full SHA f4318d2View commit details -
Remove:
CouplingGraph
rust native representation.- Move to different PR.
Configuration menu - View commit details
-
Copy full SHA for b4b438e - Browse repository at this point
Copy the full SHA b4b438eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 27febcc - Browse repository at this point
Copy the full SHA 27febccView commit details -
Configuration menu - View commit details
-
Copy full SHA for cdf762e - Browse repository at this point
Copy the full SHA cdf762eView commit details
Commits on Jun 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 29c34ce - Browse repository at this point
Copy the full SHA 29c34ceView commit details
Commits on Jun 10, 2024
-
- Use ahash for hashing when possible. - Rename `BaseTarget` to `Target` in rust only. - Rename `BaseInstructionProperties` to `InstructionProperties` in rust only. - Remove optional logic from `generate_non_global_op_names`. - Use dict for `__setstate__` and `__getstate__` in `Target`. - Reduced the docstring for `Target` and `InstructionProperties`. - Other small tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for cf8fa99 - Browse repository at this point
Copy the full SHA cf8fa99View commit details -
Configuration menu - View commit details
-
Copy full SHA for c0d9b7b - Browse repository at this point
Copy the full SHA c0d9b7bView commit details
Commits on Jun 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ed97436 - Browse repository at this point
Copy the full SHA ed97436View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c671dd - Browse repository at this point
Copy the full SHA 0c671ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e42b49 - Browse repository at this point
Copy the full SHA 8e42b49View commit details
Commits on Jun 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 03da436 - Browse repository at this point
Copy the full SHA 03da436View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0fd4316 - Browse repository at this point
Copy the full SHA 0fd4316View commit details
Commits on Jun 14, 2024
-
Fix: Use new gates infrastructure (Qiskit#12459)
- Create custom enum to collect either a `NormalOperation` or a `VariableOperation` depending on what is needed. - Add a rust native `is_instruction_supported` method to check whether a Target supports a certain instruction. - Make conversion methods from `circuit_instruction.rs` public. - Add comparison methods for `Param` in `operations.rs` - Remove need for isclass method in rustwise `add_instruction` - Other tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 529128a - Browse repository at this point
Copy the full SHA 529128aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d760332 - Browse repository at this point
Copy the full SHA d760332View commit details -
Configuration menu - View commit details
-
Copy full SHA for a359071 - Browse repository at this point
Copy the full SHA a359071View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3406c8b - Browse repository at this point
Copy the full SHA 3406c8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 934b825 - Browse repository at this point
Copy the full SHA 934b825View commit details
Commits on Jun 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 00ce1cb - Browse repository at this point
Copy the full SHA 00ce1cbView commit details
Commits on Jun 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 752e058 - Browse repository at this point
Copy the full SHA 752e058View commit details
Commits on Jun 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7192f7b - Browse repository at this point
Copy the full SHA 7192f7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d347e7b - Browse repository at this point
Copy the full SHA d347e7bView commit details
Commits on Jun 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8b3b3ad - Browse repository at this point
Copy the full SHA 8b3b3adView commit details -
Configuration menu - View commit details
-
Copy full SHA for ce4ff6b - Browse repository at this point
Copy the full SHA ce4ff6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 90b7b1e - Browse repository at this point
Copy the full SHA 90b7b1eView commit details
Commits on Jul 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f03dc15 - Browse repository at this point
Copy the full SHA f03dc15View commit details -
Fix: Improve rust methods to use iterators.
- Adapt the Python methods to leverage the rust native improvements. - Use python native structures for the Python methods.
Configuration menu - View commit details
-
Copy full SHA for 71bc4c5 - Browse repository at this point
Copy the full SHA 71bc4c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4277339 - Browse repository at this point
Copy the full SHA 4277339View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b64cf6 - Browse repository at this point
Copy the full SHA 3b64cf6View commit details
Commits on Jul 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 88f4020 - Browse repository at this point
Copy the full SHA 88f4020View commit details -
Fix: Rectify the behavior of
qargs
- Keep insertion order by inserting all qargs into a `PySet`. - Perform conversion to `PyTuple` at insertion time leveraging the iterator architecture. - Remove python side counterpart to avoid double iteration. - Make rust-native `qargs` return an iterator.
Configuration menu - View commit details
-
Copy full SHA for 98eaa45 - Browse repository at this point
Copy the full SHA 98eaa45View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b14c36 - Browse repository at this point
Copy the full SHA 7b14c36View commit details
Commits on Jul 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1a61ebb - Browse repository at this point
Copy the full SHA 1a61ebbView commit details
Commits on Jul 7, 2024
-
Fix: Corrections from Matthew's review
- Use `format!` for repr method in `InstructionProperties` - Rename `Variable` variant of `TargetInstruction` to `Variadic`. - Remove `internal_name` attribute from `TargetOperation`. - Remove `VariableOperation` class. - Use `u32` for `granularity`, `pulse_alignment`, and `acquire_alignment`. - Use `Option` to store nullable `concurrent_measurements. - Use `&str` instead of `String` for most function arguments. - Use `swap_remove` to deallocate items from the provided `properties` map in `add_instruction`. - Avoid cloning instructions, use `to_object()` instead. - Avoid using `.to_owned()`, use `.clone()` instead. - Remove mention of `RandomState`, use `ahash::HashSet` instead. - Move parameter check to python in `instruction_supported`. - Avoid exposing private attributes, use the available ones instead. - Filter out `Varidadic` Instructions as they're not supported in rust. - Use peekable iterator to peak at the next qargs in `generate_non_global_op_names`. - Rename `qarg_set` to `deduplicated_qargs` in `generate_non_global_op_names`. - Return iterator instances instead of allocated `Vec`. - Add `python_compare` and `python_is_instance` to perform object comparison with objects that satisfy the `ToPyObject` trait. - Other small tweaks and fixes.
Configuration menu - View commit details
-
Copy full SHA for 79752ee - Browse repository at this point
Copy the full SHA 79752eeView commit details
Commits on Jul 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7c9cd9d - Browse repository at this point
Copy the full SHA 7c9cd9dView commit details
Commits on Jul 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9e1e111 - Browse repository at this point
Copy the full SHA 9e1e111View commit details
Commits on Jul 10, 2024
-
Implement a nullable dict-like structure for IndexMap (#2)
* Initial: Implement a nullable dict-like structure for IndexMap * FIx: Erroneous item extraction from Python - Fix error that caused `None` values to be ignored from `None` keys. - Removed mutability from rust function argument in `add_instruction`. - Object is mutably referenced after option unwrapping. - Add missing header in `nullable_index_map.rs`. - Add Clone as a `K` and/or `V` constraint in some of the iterators. - Remove `IntoPy` constraint from `NullableIndexMap<K, V>`. - Add `ToPyObject` trait to `NullableIndexMap<K, V>`. * Fix: inplace modification of Python dict. - Perform `None` extraction from rust. - Revert changes to `Target.py` * Fix: Avoid double iteration by using filter_map. * Docs: Add inline comments. * Fix: More specific error message in `NullableIndexMap`
Configuration menu - View commit details
-
Copy full SHA for 4f24322 - Browse repository at this point
Copy the full SHA 4f24322View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0506d5 - Browse repository at this point
Copy the full SHA b0506d5View commit details
Commits on Jul 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for adc0231 - Browse repository at this point
Copy the full SHA adc0231View commit details
Commits on Jul 15, 2024
-
Fix: Use
Mapping
as the metaclass forTarget
- Minor corrections from Matthew's review.
Configuration menu - View commit details
-
Copy full SHA for 69cbc4e - Browse repository at this point
Copy the full SHA 69cbc4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 743c55a - Browse repository at this point
Copy the full SHA 743c55aView commit details
Commits on Jul 16, 2024
-
Fix: Make
Target
crate-private.- Due to the private nature of `NullableIndexMap`, the `Target` has to be made crate private. - Add temporary`allow(dead_code)` flag for the unused `Target` and `NullableIndexMap` methods. - Fix docstring of `Target` struct. - Fix docstring of `add_instruction`. - Make several python-only operations public so they can be used with other `PyClass` instances as long as they own the gil. - Modify `py_instruction_supported` to accept bound objects. - Use rust-native functions for some of the instance properties. - Rewrite `instruction` to return parameters as slice. - `operation_names` returns an `ExactSizeIterator`. - All rust-native methods that return an `OperationType` object, will return a `NormalOperation` instance which includes the `OperationType` and the parameters.
Configuration menu - View commit details
-
Copy full SHA for 54734f0 - Browse repository at this point
Copy the full SHA 54734f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5392ea - Browse repository at this point
Copy the full SHA d5392eaView commit details
Commits on Jul 23, 2024
-
Fix: Comments from Matthew's review
- Mention duplication in docstring for rust Target. - Use f"{*:g}" to avoid printing the floating point for 0 in `Target`'s repr method. - Add note mentioning future unit-tests in rust.
Configuration menu - View commit details
-
Copy full SHA for 367d711 - Browse repository at this point
Copy the full SHA 367d711View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7296ba - Browse repository at this point
Copy the full SHA e7296baView commit details -
Configuration menu - View commit details
-
Copy full SHA for f6e8189 - Browse repository at this point
Copy the full SHA f6e8189View commit details
Commits on Jul 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 96bd389 - Browse repository at this point
Copy the full SHA 96bd389View commit details -
Configuration menu - View commit details
-
Copy full SHA for 70eafce - Browse repository at this point
Copy the full SHA 70eafceView commit details