Skip to content

Support DEFGATE AS SEQUENCE #447

@erichulburd

Description

@erichulburd

We intend to support cycle calibrations using Quil's DEFGATE AS SEQUENCE. The idea here is that:

  • Any set of cycle calibrations has a corresponding DEFGATE AS SEQUENCE. This allows the user to understand the representation of the calibration as a sequence of logical gates.
  • We likely want the ability to expand DEFGATE AS SEQUENCE (and carry it over with copy_everything_except_instructions) so we can run the program through simulators that do not support DEFGATE AS SEQUENCE.

For instance:

DEFCAL FSIM-CYCLE-A(%t) q0 q1 q2 q3 q4 q5:
  FENCE
  NONBLOCKING PULSE ...
  # etc ...

DEFGATE FSIM-CYCLE-A(%t) q0 q1 q2 q3 q4 q5 AS SEQUENCE:
  PHASEDFSIM(pi/2, 1.2, -1.3*%t, 2.5, 0.0) q0 q1
  PHASEDFSIM(pi/2, 5.4, 2.6*%t, -4.5, 0.0) q2 q3
  PHASEDFSIM(pi/2, -4.3, 0.6*%t, -1.9, 0.0) q4 q5

DECLARE t REAL
FSIM-CYCLE-A(t) 0 1 2 3 4 5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions