Open marekgluza opened 4 months ago
Opened a new branch called tfim_2cnot and added the class tfim_EvolutionOracle(EvolutionOracle). It can be accessed here.
This is a work in progress.
Example of code:
hamiltonian = SymbolicHamiltonian(nqubits=3)
# Instantiate the oracle with 10 Trotter steps
oracle = tfim_EvolutionOracle(h=hamiltonian, steps=10, evolution_oracle_type="trotter")
# Example: Run the circuit for qubit a=0, B_a=0.8, and t_duration=1.0
circuit = oracle.circuit(a=0, t_duration=1.0, B_a=0.8)
# Print the resulting circuit to visualize it
print(circuit.summary())
Produces
Circuit depth = 22 Total number of gates = 22 Number of qubits = 3 Most common gates: rx: 10 rz: 10 cx: 2
Please implement this as an evolution oracle similar to #69
Here are some checks for the decomposition