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

About Time Evolution gate #377

Open
quantum-rookie opened this issue Aug 16, 2020 · 0 comments
Open

About Time Evolution gate #377

quantum-rookie opened this issue Aug 16, 2020 · 0 comments

Comments

@quantum-rookie
Copy link

Hello, I have some questions for Time Evolution gate. i'm learning VQE( variational quantum eigensolver). Through the second quantization, I get an interaction term(U) with one parameter(θ),for example U = exp(-iθZ0Z1) . Z0 and Z1 are Pauli operators acting on qubit0 and qubit1 respectively. I want to achieve U = exp(-iθZ0Z1) by Time Evolution gate.

wavefunction = eng.allocate_qureg(2)
ansatz = QubitOperator('Z0 Z1')
TimeEvolution(theta, ansatz) | wavefunction

Is this ok?

The most important quesion is i wonder how to achieve U = exp(-iθZ0Z1) by some universal quantum gates in quantum circuit? In other words, Is there any way to decompose u into some universal quantum gates?

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