{
 "slug": "controlled-phase",
 "title": "Controlled Phase",
 "symbol": "\\mathrm{C}P",
 "aliases": [
  "cphase",
  "cp"
 ],
 "notations": [
  "\\mathrm{CPhase}(\\phi)",
  "\\Lambda(\\mathrm{e}^{i\\phi})"
 ],
 "description": "Applies a phase $\\mathrm{e}^{i\\phi}$ to $|11\\rangle$ and leaves other basis states unchanged.",
 "arity": 2,
 "dimension": 2,
 "params": {
  "phi": {
   "label": "\\phi",
   "default": "1",
   "range": [
    0,
    2
   ]
  }
 },
 "matrix": [
  [
   1,
   0,
   0,
   0
  ],
  [
   0,
   1,
   0,
   0
  ],
  [
   0,
   0,
   1,
   0
  ],
  [
   0,
   0,
   0,
   "exp(i phi)"
  ]
 ],
 "groups": [
  "diagonal",
  "number-preserving"
 ],
 "properties": [],
 "url": "/gates/controlled-phase/"
}
