qiskit-machine-learning icon indicating copy to clipboard operation
qiskit-machine-learning copied to clipboard

Enhancement of PyTorch connector

Open edoaltamura opened this issue 11 months ago • 2 comments

What should we add?

Given the demand for robust coupling with PyTorch, we propose to enhance the module https://github.com/qiskit-community/qiskit-machine-learning/blob/60f2c2e1b6469b0ba878d2026c662cb5f98af50f/qiskit_machine_learning/connectors/torch_connector.py#L56 in two phases.

Phase 1 will involve no or very minor changes to the user-facing API. The changes will focus on refractoring the backend connector, bug patches, and compatibility robustness.

  • [x] Fixing compatibility with PyTorch versions 2.x, possibly in qiskit_machine_learning/optionals.py
  • [x] Refactoring _TorchNNFunction and other definitions in torch_connector.py
  • [ ] Refractoring code that involves https://github.com/qiskit-community/qiskit-machine-learning/blob/60f2c2e1b6469b0ba878d2026c662cb5f98af50f/qiskit_machine_learning/connectors/torch_connector.py#L215 into modular units based on _optionals.HAS_SPARSE.require_now("SparseArray")

Phase 2 will focus on upgrading the inter-functionality with PyTorch and may involve changes in API and UX. These changes are likely to be incrementally introduced after the version 0.8 roll-out, leading up to a stable 1.0.

  • [ ] Adding version compatibility between Qiskit machine-learning and PyTorch, with relevant deprecation warnings and supported features
  • [ ] Improving the test coverage
  • [ ] Improved documentation

edoaltamura avatar Mar 11 '24 16:03 edoaltamura

Orange County California I'm a research scientist and was assigned to investigate the housing crisis and fraud in the area. Over the past seven years I have ran into repeated evidence of systemic corruption and fraud, but this one scares me. The Bonds of Surety market, if you're familiar, basically pays the Judge, the District attorney and the public defender with each new case. They've been embezzling money from the inheritance of Latinos in the area since the 1800s. I have 1000s of documents of proof. AAA, Ralphs, Boot Barn Inc and Reynolds and Reynolds using MAS90, all get pay offs from selling everyone as Units through the municipal procurement system. If you enter an EBT number at Whole Foods it registers as a Gift Card.  They moved Baker street, the street the slaves lived on at Irvine Ranch, in to hide the postal addresses, then in the 40s they started to hide the pay offs through social services and in the 70s and 80s using 192.168 with a.com, b.com etc... and now they're using Exhibit "C", B and D Automotive and the Tustin Senior Center to launder money from probate fraud after Covid. All of this leads back to the Solano Boat Slip system. They are literally drugging victims, torturing them, having Jim Palmer of the OC Rescue Mission use hypnosis on them and then compel victims to commit crimes so they can incapacitate them to commit more fraud. That's why the right thumb prints are so important. These lawyers are selling us all as slaves now. Even the police.I wish like hell I was wrong. Sent from my iPhoneOn 11. 3. 2024., at 09:10, Edoardo Altamura @.***> wrote: What should we add? Given the demand for robust coupling with PyTorch, we propose to enhance the module https://github.com/qiskit-community/qiskit-machine-learning/blob/60f2c2e1b6469b0ba878d2026c662cb5f98af50f/qiskit_machine_learning/connectors/torch_connector.py#L56 by

Refactoring _TorchNNFunction and other definitions in torch_connector.py Refractoring code that involves https://github.com/qiskit-community/qiskit-machine-learning/blob/60f2c2e1b6469b0ba878d2026c662cb5f98af50f/qiskit_machine_learning/connectors/torch_connector.py#L215 into modular units based on _optionals.HAS_SPARSE.require_now("SparseArray") Adding version compatibility between Qiskit machine-learning and PyTorch, with relevant deprecation warnings and supported features Improving the test coverage

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

Jrbiltmore avatar Mar 12 '24 12:03 Jrbiltmore