49
49
"cell_type" : " code" ,
50
50
"execution_count" : 1 ,
51
51
"metadata" : {},
52
- "outputs" : [
53
- {
54
- "name" : " stdout" ,
55
- "output_type" : " stream" ,
56
- "text" : [
57
- " Requirement already satisfied: cvxpy in /home/ec2-user/anaconda3/envs/Braket/lib/python3.7/site-packages (1.1.15)\r\n " ,
58
- " Requirement already satisfied: numpy>=1.15 in /home/ec2-user/anaconda3/envs/Braket/lib/python3.7/site-packages (from cvxpy) (1.19.2)\r\n " ,
59
- " Requirement already satisfied: ecos>=2 in /home/ec2-user/anaconda3/envs/Braket/lib/python3.7/site-packages (from cvxpy) (2.0.7.post1)\r\n " ,
60
- " Requirement already satisfied: osqp>=0.4.1 in /home/ec2-user/anaconda3/envs/Braket/lib/python3.7/site-packages (from cvxpy) (0.6.2.post0)\r\n " ,
61
- " Requirement already satisfied: scs>=1.1.6 in /home/ec2-user/anaconda3/envs/Braket/lib/python3.7/site-packages (from cvxpy) (2.1.4)\r\n " ,
62
- " Requirement already satisfied: scipy>=1.1.0 in /home/ec2-user/anaconda3/envs/Braket/lib/python3.7/site-packages (from cvxpy) (1.5.2)\r\n " ,
63
- " Requirement already satisfied: qdldl in /home/ec2-user/anaconda3/envs/Braket/lib/python3.7/site-packages (from osqp>=0.4.1->cvxpy) (0.1.5.post0)\r\n "
64
- ]
65
- }
66
- ],
52
+ "outputs" : [],
67
53
"source" : [
68
54
" # AWS imports: Import Braket SDK modules\n " ,
69
- " !pip install cvxpy\n " ,
70
55
" from braket.circuits import Circuit\n " ,
71
56
" from braket.devices import LocalSimulator\n " ,
72
57
" from braket.aws import AwsDevice, AwsQuantumTask\n " ,
82
67
" # magic word for producing visualizations in notebook\n " ,
83
68
" %matplotlib inline\n " ,
84
69
" \n " ,
85
- " # install a pip package in the current Jupyter kernel\n " ,
86
- " #import sys\n " ,
87
- " #!{sys.executable} -m pip install cvxpy\n " ,
88
- " \n " ,
89
70
" # import convex solver\n " ,
90
71
" import cvxpy as cp"
91
72
]
552
533
" (CVXPY) Aug 26 08:35:40 PM: Optimal value: 6.075e-01\n " ,
553
534
" (CVXPY) Aug 26 08:35:40 PM: Compilation took 2.013e-02 seconds\n " ,
554
535
" (CVXPY) Aug 26 08:35:40 PM: Solver (including time spent in interface) took 3.882e-02 seconds\n " ,
555
- " \u001B [1mThe coditional min-entropy is: 0.7190228620489293\n " ,
536
+ " \u001b [1mThe coditional min-entropy is: 0.7190228620489293\n " ,
556
537
" As a comparison, the unconditional min-entropy is: 0.9439714610772487\n "
557
538
]
558
539
}
903
884
}
904
885
],
905
886
"metadata" : {
887
+ "interpreter" : {
888
+ "hash" : " 88fa568089e50b9e3b8fc07b1f035315d2ef539d9a4b33ba4bd65e10c3c73513"
889
+ },
906
890
"kernelspec" : {
907
891
"display_name" : " conda_braket" ,
908
892
"language" : " python" ,
909
- "name" : " conda_braket "
893
+ "name" : " python3 "
910
894
},
911
895
"language_info" : {
912
896
"codemirror_mode" : {
918
902
"name" : " python" ,
919
903
"nbconvert_exporter" : " python" ,
920
904
"pygments_lexer" : " ipython3" ,
921
- "version" : " 3.7.10 "
905
+ "version" : " 3.7.12 "
922
906
}
923
907
},
924
908
"nbformat" : 4 ,
925
909
"nbformat_minor" : 4
926
- }
910
+ }
0 commit comments