Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/quantum-machine-learning-python
/ QAOA.py
File
QAOA.py
Chapter_7/listing7_3/QAOA.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
cirq
2
import
numpy
as
np
3
print(
'cirq version'
,cirq.__version__)
4
print(
'np version'
, np.__version__)
Callers
nothing calls this directly
Calls
2
QAOA
Class · 0.85
main
Method · 0.45
Tested by
no test coverage detected