Skip to content
New issue

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

Quantum Natural Gradient to handle repeated parameterized variables #462

Open
1tnguyen opened this issue Jun 16, 2021 · 0 comments
Open

Comments

@1tnguyen
Copy link
Member

Currently, QNG impl. cannot handle repeated variable (x0 in the below example).
Need to enhance the toParametrizedLayers method to support this.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant