Skip to content

Add support for a controlled-phase gate (= controlled-Z-rotation gate) with a rotation angle chosen by the caller. #39

@brunorijsman

Description

@brunorijsman

Add support for a controlled-phase gate (= controlled-Z-rotation gate) with a rotation angle chosen by the caller.

NetQASM current supports:

  1. Single-qubit Z-rotation operations with fixed angles, namely operator Z (fixed rotation angle pi), operator S (fixed rotation angle pi/2), and operator T (fixed rotation angle pi/4).

  2. A single-qubit Z-rotation operation with a rotation angle chosen by the caller, namely operator ROT_Z.

  3. A two-qubit controlled-Z-rotation operation with a fixed angle, namely operator CPHASE (fixed rotation angle pi).

What is missing is a two-qubit controlled-Z-rotation operation with a rotation angle chosen by the caller. Perhaps this could be called CROT_Z.

This new CROT_Z operation is needed to implement the Quantum Fourier Transformation (QFT).

I plan to generate a pull request for this in the near future.

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