Comments (2)
@scarrazza, do you have any idea on how this could be implemented? I guess that we would like something similar to the old tf.enable_v2_behavior()
. This was possible to call right after importing tensorflow and if it was called later it was raising an error.
I tried adding a set_precision
method that modifies config.DTYPE
in our __init__
however it only works if I remove the imports from the __init__
. I am not sure how to make this work including the imports. I would like to have this feature because it would simplify benchmarks a lot.
from qibo.
I think one possibility is to encapsulate the variables declared in config.py
in a class instance and make this class a singleton object allocated in the init which can be modified and imported by all modules using its current state.
from qibo.
Related Issues (20)
- `Circuit.unitary` breaks in the presente of two-qubit gate initialized by `Gate.controlled_by`
- Change to Circuit.measurements broke to_qasm() HOT 1
- Add Matteo to documentation
- Reuploading classifier expects states method from circuit result object HOT 4
- `AbstractResult` object
- Does Qibo provides measurements? HOT 2
- Restore QGAN model
- CVXPY not available in Python 3.12
- ResetChannel does not do in-place modification of density matrices with qibojit
- Change transpiler `final_layout`
- qibo.transpilation does not seem to allow user to define some native gates HOT 1
- ZNE doesn't repeat RX or CNOT gates when there is no RX or CNOT in the circuit HOT 1
- Transpiler handling across backends HOT 1
- Inconsistent pytest results on macos with pytorch HOT 1
- Suggested improvement for ZNE's `get_noisy_circuit` function (related to #1305) HOT 1
- Unroller duplicates gates when measuring in specific basis HOT 2
- Request for adding VTE (Variational Time Evolution) or PF (Product Formulas) in QiboTN HOT 4
- Conversion of circuits with Unitary gates to QASM not supported
- DBI utils module
- Align gate should be a `ParametrizedGate`
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 qibo.