openfermion.circuits.pauli_exp_to_qasm
Exponentiate a list of QubitOperators to a QASM string generator.
openfermion.circuits.pauli_exp_to_qasm(
qubit_operator_list, evolution_time=1.0, qubit_list=None, ancilla=None
)
Exponentiates a list of QubitOperators, and yields string generators in
QASM format using the formula: exp(-1.0j * evolution_time * op).
Args |
qubit_operator_list
|
list of QubitOperators
list of single Pauli-term
QubitOperators to be exponentiated
|
evolution_time
|
float
evolution time of the operators in
the list
|
qubit_list
|
(list/tuple or None)Specifies the labels for the qubits
to be output in qasm.
If a list/tuple, must have length greater than or equal to the
number of qubits in the QubitOperator. Entries in the
list must be castable to string.
If None, qubits are labeled by index (i.e. an integer).
|
ancilla
|
string or None
if any, an ancilla qubit to perform
the rotation conditional on (for quantum phase estimation)
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[]]