Questions tagged [tfq]

TensorFlow Quantum (TFQ) is a quantum machine learning library for rapid prototyping of hybrid quantum-classical ML models. It integrates quantum computing algorithms and logic designed in Cirq and provides quantum computing primitives compatible with existing TensorFlow APIs and quantum circuit simulators.

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
14 views

How to train the embedding of classical data as well as the classifier in TFQ?

I've got some classical training data, and, for the moment, each of these will have its own embedding parameters defining how it is inputted into a certain ansatz. What I'd like is a circuit in two ...
  • 21
2 votes
0 answers
69 views

Use parametrized quantum circuit output amplitudes for training in tensorflow

I am trying to train a quantum neural network in tensorflow_quantum (tfq). Using cirq.Circuit I have set up my circuit. I now need to wrap it in a keras model for ...
2 votes
0 answers
70 views

Does anyone know how to use TF Quantum with real hardware data?

I'm currently trying to embed a tensorflow model for denoising measurements as a tensorflow quantum model, and at some point I'd like for this to be able to run on hardware. After reading through all ...
2 votes
0 answers
113 views

How to convert a dataset of different values in [0,1000] to quantum data for training a model using Tensorflow QuantumHaving?

...
1 vote
0 answers
27 views

keras agents fails in DQNAgent using PQC during clonation for target

I have some issues using keras-rl2 with tensorflow_quantum and VQC (using identical architecture as https://www.tensorflow.org/quantum/tutorials/quantum_reinforcement_learning) After the creation of ...
1 vote
0 answers
83 views

Quantum Circuits for Time-Series Data

I am currently working with a dataset with autocorrelated features, i.e, x(t) affects the value of x(t+1) which affects the value of x(t+2). Suppose this is the circuit representing x(t): Does ...
0 votes
0 answers
35 views

Gradient registry has no entry for: TfqSimulateState

I am trying to calculate and optimize a loss with TFQ and cirq. Using tfq.layers.State() to work with statevector instead of its observables. But when I try to fit o get its gradient the following ...
0 votes
0 answers
14 views

Understanding how control parameter inputs work in tfq.layers.ControlledPQC

In the documentation of tfq.layers.ControlledPQC, the authors provide model_params as one of the argument to the ControlledPQC object ...