hamil_clever_sim.hamil_runner.build_iterative_circuit§
- build_iterative_circuit(t, *u_states, N=4)[source]§
Implements a trotterised circuit from a vararg of U(t) circuits. This method assumes that given trotterised circuits of X+Y and X+Y+Z are valid, then X+Y+Z+X+…+Z are also valid.
- Parameters:
N (
int) – Trotterisation terms / simulation accuracy. Higher values are better, but will balloon the gate count.t (
float) – How many time steps to simulate for. This term does not introduce more gates, just what the rotation value will be.
- Returns:
Returns a circuit that implements \(\ket{\psi_t}\)
- Return type:
QuantumCircuit