- Write programs that do one thing and do it well.
- Write programs to work together.
- Write programs to handle text streams, because that is a universal interface.
- Parse the file
- Simulate circuit
- Optimise expression (find ordering, slice, etc)
- Actually simulate
Simulator program: tensim
- Simply simulate a circuit:
cat circuit | tensim > result
-
Simulate a circuit in a wierd format
cat circuit | tensim parse -f wierd | tensim > result
- Why not
tensim --input-fmt wierd
?
- Why not
-
Simulate N generated circuits in one command
generate_circ -n 1 >> circuits
generate_circ -n 2 >> circuits
....
cat circuits | tensim > results
- Simulate circuit based on Hamiltonian composed of tensor network, not gates
gen_tensor_net | tensim optimize | tensim simulate > result