Owen L
Owen L
What exact steps did you do? What os and other system info is in play? Is anything from https://github.com/tensorflow/quantum/issues/762 or https://github.com/tensorflow/quantum/issues/757 or https://github.com/tensorflow/quantum/issues/767 relevant since these are all recent issues...
That sounds like the issues I linked. Colabs default Python version isn’t supported.
My guess would be there is something going on with the interface here: https://github.com/tensorflow/quantum/blob/v0.7.2/tensorflow_quantum/core/ops/cirq_ops.py#L125, might be a good place to investigate more. Although I am interested in seeing why you...
GPU support for ops is super nascent (see: https://github.com/tensorflow/quantum/pull/759), I'm not 100% what state it is in so if you encounter errors, be sure to share them. Regarding pinned dependencies,...
Sure, if you have a ControlledPQC, just have the first input weights be the however many inputs you want (assuming you are doing some sort of angle encoding)
```python import tensorflow as tf import tensorflow_quantum as tfq import numpy as np import cirq import sympy data = tf.random.uniform(minval=-1, maxval=1, shape=(100, 2)) # random 2D data qubits = [cirq.GridQubit(1,...
For state, the user explicitly maps the parameter names and their values, assuming the parameter names are the same in the ControlledPQC, then yes (also true if you specify the...
Cirq doesn't play well with tensors, just convert it to a numpy array. E.g. this worked: ```python import tensorflow as tf import tensorflow_quantum as tfq import numpy as np import...
It does measure the fidelity between states, but the input type is circuits and it uses that terminology to reflect that (since you could have many different parameters and stuff...
Yea cirq.fidelity says it takes statevectors or density matrices, so either should work. Regarding relative entropy, your best bet would probably be to take the output of the state layer...