instruction.py 574 B

1234567891011121314151617181920212223242526272829
  1. """
  2. The class defined here describes all
  3. possible instructions that can occur.
  4. This includes:
  5. - Adding quantum gates
  6. - Measurement (including sampling, etc.)
  7. - Reset
  8. - Initialization
  9. The instructions defined here are independent
  10. of backend, and each of the backends should
  11. implement their own validation step, which
  12. should also correspond to the backend selection
  13. procedure.
  14. """
  15. # An instruction consists of a number of parts
  16. class Instruction:
  17. def __init__(self, name, num_qubits, num):
  18. pass
  19. class Gate(Instruction):
  20. def __init__(self):
  21. pass