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
Currently, QNG impl. cannot handle repeated variable (x0 in the below example). Need to enhance the toParametrizedLayers method to support this.
x0
toParametrizedLayers
Test ansatz circuit:
X q0 X q2 H q0 H q1 H q2 Rx(1.57079) q3 CNOT q0,q1 CNOT q1,q2 CNOT q2,q3 Rz(-0.353554 * x0) q3 CNOT q2,q3 CNOT q1,q2 CNOT q0,q1 H q0 H q1 H q2 Rx(-1.57079) q3 H q0 H q1 Rx(1.57079) q2 H q3 CNOT q0,q1 CNOT q1,q2 CNOT q2,q3 Rz(0.353554 * x0) q3 CNOT q2,q3 CNOT q1,q2 CNOT q0,q1 H q0 H q1 Rx(-1.57079) q2 H q3 H q0 Rx(1.57079) q1 H q2 H q3 CNOT q0,q1 CNOT q1,q2 CNOT q2,q3 Rz(-0.353554 * x0) q3 CNOT q2,q3 CNOT q1,q2 CNOT q0,q1 H q0 Rx(-1.57079) q1 H q2 H q3 H q0 Rx(1.57079) q1 Rx(1.57079) q2 Rx(1.57079) q3 CNOT q0,q1 CNOT q1,q2 CNOT q2,q3 Rz(-0.353554 * x0) q3 CNOT q2,q3 CNOT q1,q2 CNOT q0,q1 H q0 Rx(-1.57079) q1 Rx(-1.57079) q2 Rx(-1.57079) q3 Rx(1.57079) q0 H q1 H q2 H q3 CNOT q0,q1 CNOT q1,q2 CNOT q2,q3 Rz(0.353554 * x0) q3 CNOT q2,q3 CNOT q1,q2 CNOT q0,q1 Rx(-1.57079) q0 H q1 H q2 H q3 Rx(1.57079) q0 H q1 Rx(1.57079) q2 Rx(1.57079) q3 CNOT q0,q1 CNOT q1,q2 CNOT q2,q3 Rz(0.353554 * x0) q3 CNOT q2,q3 CNOT q1,q2 CNOT q0,q1 Rx(-1.57079) q0 H q1 Rx(-1.57079) q2 Rx(-1.57079) q3 Rx(1.57079) q0 Rx(1.57079) q1 H q2 Rx(1.57079) q3 CNOT q0,q1 CNOT q1,q2 CNOT q2,q3 Rz(-0.353554 * x0) q3 CNOT q2,q3 CNOT q1,q2 CNOT q0,q1 Rx(-1.57079) q0 Rx(-1.57079) q1 H q2 Rx(-1.57079) q3 Rx(1.57079) q0 Rx(1.57079) q1 Rx(1.57079) q2 H q3 CNOT q0,q1 CNOT q1,q2 CNOT q2,q3 Rz(0.353554 * x0) q3 CNOT q2,q3 CNOT q1,q2 CNOT q0,q1 Rx(-1.57079) q0 Rx(-1.57079) q1 Rx(-1.57079) q2 H q3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, QNG impl. cannot handle repeated variable (
x0
in the below example).Need to enhance the
toParametrizedLayers
method to support this.Test ansatz circuit:
The text was updated successfully, but these errors were encountered: