PennyLane is a cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Train a quantum computer the same way as a neural network.
Add a template that can compare a provided integer $L$ with a basis state $\left|i\right>_n$ and flip a target qubit if $i\ge L$ or $i < L$ depending on a user-defined parameter:
$\left|i\right>_n\left|0\right>\rightarrow\left|i\right>_n\left|i\ge L\right>$
Feature details
Add a template that can compare a provided integer $L$ with a basis state $\left|i\right>_n$ and flip a target qubit if $i\ge L$ or $i < L$ depending on a user-defined parameter: $\left|i\right>_n\left|0\right>\rightarrow\left|i\right>_n\left|i\ge L\right>$
Implementation
This is available in Qiskit here.
How important would you say this feature is?
2: Somewhat important. Needed this quarter.
Additional information
No response