Solving NP-hard portfolio constraints with Simulated Quantum Annealing (PyTorch)
▲ 17 r/QuantumComputingStock+2 crossposts

Solving NP-hard portfolio constraints with Simulated Quantum Annealing (PyTorch)

Adding real-world constraints—like sector caps or HHI concentration limits—turns standard portfolio optimization into an NP-hard Mixed-Integer problem. Traditional solvers quickly hit a computational wall as the asset universe scales.

To bypass this, I built a Quantum-Inspired Optimizer that maps continuous allocation weights and structural constraints into an Ising Hamiltonian framework using PyTorch. Instead of deterministic branch-and-bound, it uses simulated thermal annealing to navigate the complex energy landscape, treating constraint violations as physical "friction" to settle into a strictly compliant ground state.

Full architectural breakdown and a video of the live Streamlit UI in action here: Link

u/Appropriate-Bar-6307 — 10 days ago

Dilemma: First hire at a pre-seed startup (36k) vs. Postdoc at CSIC learning Quantum Computing?

Hi everyone,

First of all, hello community! Thanks a lot for all the useful suggestions on my past posts.

Following up on my post from last week, I have a contract finalized with a pre-seed startup in the North of Spain that focuses on material science. The salary is negotiated at around 36,000 Euro per annum. The CEO and CTO are based in Germany, but they have an office in Spain.

Simultaneously, I just received a Postdoc offer from the Spanish National Research Council (CSIC) in central Spain.

I am facing a massive dilemma on which path to choose. They are two very different tracks, and my confusion stems from a few key factors:

  1. THE STARTUP (THE INDUSTRY ROUTE)

The Setup: The CEO and CTO both have Master's degrees and experience primarily in the IT domain. I am their very first hire.

The Vibe: I actually worked with them for 2 to 3 weeks to test our synergy. While they are great at the engineering and business sides, every single physics and material science idea originates from me. Because I have a PhD and they come from IT, I don't feel intellectually stimulated or able to truly brainstorm ideas with them. I end up carrying the scientific weight.

The Work: I would be applying the material science knowledge I already have.

  1. THE CSIC POSTDOC (THE ACADEMIC / NEW TECH ROUTE)

The Setup: Working with a young, seasoned, and very active PI who constantly engages me with brilliant ideas.

The Work: I recently changed my domain from DFT / MD to hardcore material science. This postdoc is offering me the opportunity to dive into Quantum Computing applications, which I am incredibly excited about. Instead of just applying what I know (like at the startup), I would be learning something cutting-edge and brand new.

MY SITUATION:

Money is not the deciding factor for me right now; I am purely focused on my long-term career growth and personal satisfaction.

On one hand, the startup is a risky but potentially rewarding ground-floor opportunity, but I worry about hitting a ceiling due to the lack of scientific mentorship. On the other hand, the postdoc offers a brilliant mentor and a chance to pivot into Quantum Computing, which feels much more intellectually stimulating.

What would you do in my shoes? How is the long-term outlook for Quantum Computing in materials vs. being Employee #1 at a pre-seed startup?

Thanks in advance for your insights!

reddit.com
u/Appropriate-Bar-6307 — 25 days ago

Need advice on compensation

Hey everyone,

I just finished my PhD in Condensed Matter/Quantum Physics in France (I am originally South Asian). I’ve been interviewing for a Computational Physicist role at an early-stage materials science and AI startup based in Northern Spain.

After a brutal 6-round interview process (technical, culture, HR, etc.), they extended an offer but gave me three different compensation tracks to choose from.

Here are the choices they gave me:

* Option 1 (Heavy Equity)

* Current Cash Salary: €24,000 / year

* Post-Seed Cash Uplift: Increased to €54,000 / year upon closing the seed round

* Equity (Stock Options): 0.5% - 1.0%

* Vesting Schedule: 4-year vesting with a 2-year cliff

* Seed-Close Bonus: €10,000 one-time

* Option 2 (The Hybrid)

* Current Cash Salary: €36,000 / year

* Post-Seed Cash Uplift: Increased to €48,000 / year upon closing the seed round

* Equity (Stock Options): 0.25% - 0.50%

* Vesting Schedule: 4-year vesting with a 2-year cliff

* Seed-Close Bonus: €5,000 to €10,000 one-time

* Option 3 (Pure Cash)

* Current Cash Salary: €48,000 / year (No post-seed adjustments)

* Equity (Stock Options): None

* Vesting Schedule: None

* Seed-Close Bonus: €1,000 one-time

### Context & My Concerns:

  1. The Visa Issue (Crucial): I am a South Asian citizen currently on a post-study visa set up in France. To move to Spain, this startup has to sponsor my Highly Skilled Professional Visa or an EU Blue Card. Spain recently updated its legal visa thresholds—the standard minimum for an EU Blue Card is around €39,269. I am highly suspicious that Spanish immigration will automatically reject a €24k baseline salary for a PhD-level specialist, regardless of "promised" future seed uplifts.

  2. The 2-Year Cliff: A 2-year vesting cliff feels incredibly predatory. Standard tech is 1 year. If they lay me off at month 23, I walk away with 0% equity after working for peanuts.

  3. The "Post-Seed" Promise: Pre-seed startups fail to raise follow-on funding all the time. If I take Option 1 or 2 and they can't close the round, I am legally stuck on a tiny salary until the cash runs out.

### My Questions for the Community:

* Is €48,000 a justified/fair salary for a fresh PhD Computational Physicist in Northern Spain?

* Is it normal for Spanish startups to offer such low base salaries with a 2-year cliff? It feels like they are pushing the funding risk entirely onto me.

* For expats in Spain: Will Option 1 or Option 2 even pass the legal salary thresholds required for a Highly Skilled Professional visa / Blue Card transition?

* Cash vs. Equity: Is it ever worth gambling on a 0.5% pre-seed equity stake over a clean €48k cash salary in the Spanish ecosystem?

* TL;DR: Fresh Physics PhD/Non-EU expat offered €24k+equity, €36k+half equity, or €48k pure cash at a Spanish pre-seed startup. 2-year vesting cliff on the equity. Needing visa sponsorship. Which option is the sanest choice?

reddit.com
u/Appropriate-Bar-6307 — 1 month ago

Hey everyone, making this thread for ICTP MHPC 2026 applicants to share any updates. Has anyone received any email from ICTP yet? Interviews, results, waitlists, rejections, or anything else?

reddit.com
u/Appropriate-Bar-6307 — 2 months ago
▲ 60 r/Lyon

Urgent: Missing Student in Lyon – Please Help 🚨

Dear all,

We are trying to locate a 19-year-old Indian student, Gurpreet Sandhi, who reportedly arrived in Lyon in December 2025 for university studies and is currently not traceable.

His sister has come from London to search for him, and the matter has also been brought to our attention via the concerned indian authorities. We are reaching out to the Indian community and wider networks for any information that may help.

🙏 If you have:

- Seen or met Gurpreet recently

- Have any contact details

- Know his university, accommodation

Even the smallest lead could help.

📢 Kindly share this message across your networks—especially among students in Lyon and nearby cities.

Thank you for your support.

If you or someone finds any updates please drop a mail with all the details to below email ID

contact@rivierakutumb.org

Thank you. 🙏🏻

reddit.com
u/Appropriate-Bar-6307 — 2 months ago
▲ 0 r/AskPhysics+1 crossposts

Hey everyone, making this thread for ICTP MHPC 2026 applicants to share any updates. Has anyone received any email from ICTP yet? Interviews, results, waitlists, rejections, or anything else? Any track is welcome.

reddit.com
u/Appropriate-Bar-6307 — 2 months ago

Hey everyone, making this thread for ICTP MHPC 2026 scholarship applicants to share any updates. Has anyone received any email from ICTP yet? Results, waitlists, rejections, or anything else? Any track is welcome.

reddit.com
u/Appropriate-Bar-6307 — 2 months ago