openfermion.testing.validate_trotterized_evolution
Checks whether a circuit implements Trotterized evolution
openfermion.testing.validate_trotterized_evolution(
circuit: cirq.Circuit,
ops: List['openfermion.QubitOperator'],
qubits: List['cirq.Qid']
)
Takes a circuit that is supposed to implement evolution of the
form:
\[\prod_j \exp[iO_j]\]
and checks whether the implemented unitary is applied.
Ignores any global phases as part of the implementation of the unitary, as
these are not kept consistent in cirq (and unphysical).
Arguments |
circuit
|
'cirq.Circuit' {[type]} -- circuit to be checked
ops {List['openfermion.QubitOperator']} -- list of operators \(O_j\)
in application order (i.e. ops[0] is the first operator to be
applied).
qubits {List['cirq.Qid']} -- list of qubits in circuit in index order
|
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."],[],[]]