Comments (7)
We no longer include the generated code because the engine code can use straight python dictionaries. However we should probably include bazel rules here anyway.
from cirq.
Would like to help with this if i knew what it meant. I'm willing to learn Bazel but there are no tutorials for Python: https://docs.bazel.build/versions/master/getting-started.html
from cirq.
Looks like Bazel rules are language agnostic. This is what I have in a BUILD
file in cirq/api/google/v1
proto_library(
name = "operations_proto",
srcs = ["operations.proto"],
)
proto_library(
name = "params_proto",
srcs = ["params.proto"],
)
proto_library(
name = "program_proto",
srcs = ["program.proto"],
deps = [
"operations_proto",
"params_proto",
],
)
from cirq.
@vtomole have you check to see if this compiles in Bazel? If so I think we should add these (without making bazel a requirement of Cirq, but I think this will be useful...at least it will be inside of Google!)
from cirq.
Bazel can compile it. Should I also send the WORKSPACE
file? It's in Cirq/
and it contains
# This statement defines the @com_google_protobuf repo.
http_archive(
name = "com_google_protobuf",
sha256 = "cef7f1b5a7c5fba672bec2a319246e8feba471f04dcebfe362d55930ee7c1c30",
strip_prefix = "protobuf-3.5.0",
urls = ["https://github.com/google/protobuf/archive/v3.5.0.zip"],
)
Cirq$ bazel build //cirq/api/google/v1:program_proto
and friends can't succeed without it.
from cirq.
I had to kill the bazel step on travis because the jdk download started 404ing
from cirq.
we have valid BUILD files, but aren't using or requiring bazel. I think we should close.
from cirq.
Related Issues (20)
- Update produce-package.sh script HOT 2
- Automate stable release workflow HOT 1
- PauliSum reorders the qubits, possibly in a non-deterministic way HOT 2
- failing comparisons for noise channels
- Type errors in quantum engine api code
- Typo in docstring for GPI2 gate HOT 5
- External link returns 404 HOT 4
- Drop python 3.10 HOT 2
- update protobuf API calls so it does not have to be pinned to protobuf-4 HOT 1
- docs/hardware/pasqal/getting_started.ipynb fails to execute in Google Colab HOT 1
- Issue when commuting moments HOT 1
- Update cirq_rigetti to conform to the new mypy standard HOT 2
- cphase comparison with CZ failing after dependency update HOT 1
- Quantum shannon decomposition fails for QFT with non-unitary matrix error HOT 1
- `cirq.decompose_once` fails when called on `cirq.CZ` HOT 3
- Avoid pickling of cached values of `cached_method` decorated functions
- CI Pytest Windows fails because cirq_rigetti does not install
- dev docs suggest using "git remote -va" but -a is not a valid flag
- mypy fails with error about duplicate module named "setup.py"
- pylint fails with errors about bad-option-value HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cirq.