Skip to content

Instantly share code, notes, and snippets.

@techwithshadab
Created November 3, 2021 20:59
Show Gist options
  • Save techwithshadab/37e9a751163246a789dd9833cb63a2d0 to your computer and use it in GitHub Desktop.
Save techwithshadab/37e9a751163246a789dd9833cb63a2d0 to your computer and use it in GitHub Desktop.
# Retrieve Hamiltonian
qubitOp, offset = portfolio.get_operator(mu, sigma, risk_factor, budget, penalty)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment