We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For an upcoming demo, we need cuQuantum to accept CUDA-Q circuits into the CircuitToEinsum function here.
The text was updated successfully, but these errors were encountered:
from cuquantum import cutensornet as cutn from cuquantum import contract, CircuitToEinsum import torch from qiskit.circuit import QuantumCircuit, Parameter num_qubits = 1 measurement_ops = 'Z' light_cone = True # Define the quantum circuit with one qubit and two parameters theta = Parameter('θ') phi = Parameter('φ') circuit = QuantumCircuit(num_qubits) circuit.rx(theta, 0) circuit.ry(phi, 0) circuit = circuit.bind_parameters({theta: parameters[0], phi: parameters[1]}) converter = CircuitToEinsum(circuit, backend='torch') einsum_expression, tensor_operands = converter.expectation(measurement_ops, light_cone)
Here we can see that it can accept a Qiskit circuit, we would like it to accept CUDA-Q too.
Thanks
Sorry, something went wrong.
Request to cuQuantum here
1tnguyen
zohimchandani
No branches or pull requests
Required prerequisites
Describe the feature
For an upcoming demo, we need cuQuantum to accept CUDA-Q circuits into the CircuitToEinsum function here.
The text was updated successfully, but these errors were encountered: