Skip to content

Commit

Permalink
almost_all the updates
Browse files Browse the repository at this point in the history
The only thing left is running the cases on ionQ. I have to take away "./Data/results_qaoa_local.npy" it was to heavy
  • Loading branch information
alejomonbar committed Feb 27, 2023
1 parent f4e96c0 commit e803774
Show file tree
Hide file tree
Showing 63 changed files with 20,912 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
2,622 changes: 2,622 additions & 0 deletions .ipynb_checkpoints/Portfolio_optimization_for_SP500-checkpoint.ipynb

Large diffs are not rendered by default.

1,577 changes: 1,577 additions & 0 deletions .ipynb_checkpoints/Portfolio_optimization_mdls_comparison-checkpoint.ipynb

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file added Data/.DS_Store
Binary file not shown.
Binary file added Data/energy_landscape_qiskit.npy
Binary file not shown.
Binary file added Data/energy_landscape_sv1.npy
Binary file not shown.
Binary file added Data/results_qaoa.npy
Binary file not shown.
Binary file added Data/results_qaoa_aws.npy
Binary file not shown.
Binary file added Data/setup_real_stocks.npy
Binary file not shown.
Binary file added Data/simulation_results.pickle
Binary file not shown.
Binary file added Images/probability_aws.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/probability_local.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/resources.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/unbalanced_comparison_real_dev.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/unbalanced_penalization_assets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/unbalanced_penalization_assets_CoP.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/unbalanced_penalization_assets_r.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/unbalanced_vs_slack_CoP.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/unbalanced_vs_slack_probability.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/unbalanced_vs_slack_probability_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/unbalanced_vs_slack_probability_ratio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/unbalanced_vs_slack_r.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/visualization_17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/zeno_vs_penalty.pdf
Binary file not shown.
Binary file added Images/zeno_vs_penalty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/zeno_vs_penalty_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/zeno_vs_penalty_zoom.pdf
Binary file not shown.
Binary file added Images/zeno_vs_penalty_zoom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,622 changes: 2,622 additions & 0 deletions Portfolio_optimization_for_SP500.ipynb

Large diffs are not rendered by default.

1,580 changes: 1,580 additions & 0 deletions Portfolio_optimization_mdls_comparison.ipynb

Large diffs are not rendered by default.

173 changes: 173 additions & 0 deletions Portfolio_optimization_visualization.ipynb

Large diffs are not rendered by default.

Binary file added __pycache__/functions.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/problem_instances.cpython-39.pyc
Binary file not shown.
48 changes: 48 additions & 0 deletions circuit_qasms/equality_qcl_N_1.qasm
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
OPENQASM 2.0;
include "hqslib1.inc";

qreg a1[1];
qreg q60[4];
creg c00[4];
creg c01[1];
creg c02[1];
creg c03[1];
U1q(2.75*pi,0.5*pi) q60[0];
U1q(1.5*pi,1.0*pi) q60[1];
U1q(0.5*pi,0.5*pi) q60[2];
U1q(0.5*pi,0.5*pi) q60[3];
ZZ q60[2],q60[1];
U1q(0.5*pi,0.5*pi) q60[1];
ZZ q60[1],q60[0];
U1q(1.75*pi,0.0*pi) q60[0];
ZZ q60[2],q60[0];
U1q(2.25*pi,0.5*pi) q60[0];
ZZ q60[1],q60[0];
U1q(3.75*pi,0.0*pi) q60[0];
U1q(1.0*pi,0.4851347321726651*pi) q60[1];
ZZ q60[2],q60[0];
U1q(0.5*pi,1.5*pi) q60[0];
U1q(1.0*pi,0.9554041965179962*pi) q60[2];
RZZ(0.014865267827334439*pi) q60[1],q60[0];
RZZ(0.029730535654669543*pi) q60[2],q60[0];
U1q(1.0*pi,1.9702694643453373*pi) q60[1];
RZZ(0.01486526782733466*pi) q60[3],q60[0];
U1q(1.0*pi,1.4554041965179962*pi) q60[2];
U1q(3.4864700749295006*pi,0.36482053899315936*pi) q60[0];
RZZ(0.014865267827334541*pi) q60[2],q60[1];
rz(3.6351794610068406*pi) q60[0];
U1q(1.0*pi,1.9702694643453373*pi) q60[1];
RZZ(0.014865267827334933*pi) q60[3],q60[1];
U1q(3.486470074929499*pi,0.35537437729522114*pi) q60[1];
U1q(1.0*pi,1.0*pi) q60[3];
rz(1.6446256227047789*pi) q60[1];
RZZ(0.029730535654669654*pi) q60[3],q60[2];
U1q(3.4864700749295006*pi,1.4608233026473822*pi) q60[2];
U1q(0.4864700749294783*pi,0.5054191061293951*pi) q60[3];
rz(0.5391766973526178*pi) q60[2];
rz(3.494580893870605*pi) q60[3];
barrier q60[0],q60[1],q60[2],q60[3],a1[0];
measure q60[0] -> c00[0];
measure q60[1] -> c00[1];
measure q60[2] -> c00[2];
measure q60[3] -> c00[3];
Loading

0 comments on commit e803774

Please sign in to comment.