co9olguy / qdata

1 stars 3 forks source link

Converted data to .qasm and added verification of ground state energies #27

Open therooler opened 3 years ago

therooler commented 3 years ago

This pull request contains the following things:

  1. All my data in the 2.1 OpenQASM spec. Added to the qasm-parser/examples/example_data/tfi_and_xxz_chain directory.

  2. The files tfim_chain_generate_qasm_file.py, tfim_rect_generate_qasm_file.py and xxz_chain_generate_qasm_file.pywhich can be used to generate these .qasm files.

  3. The script verify_data.py to verify the circuits. I apply the following steps:

The verify_data.py script can potentially be converted to a pytest script, but it takes a while to run.

I think the spec work pretty well already, but as I commented in issue #23, there are cases where the gate or energy definitions contains a mixture of Terms,Gates andOp` objects where you expect only one type of object.

co9olguy commented 3 years ago

Thanks @therooler! This will be helpful for further testing, and also likely for cirq compatibility of the parser

co9olguy commented 3 years ago

image :eyes: