![]() |
Creates the gate instance for any number qubits diagonal gate.
The gate is used to create a (2^n)x(2^n) matrix with the diagonal elements passed as a list.
Classes
class DiagonalGate
: A gate given by a diagonal (2^n)\times(2^n) matrix.
![]() |
Creates the gate instance for any number qubits diagonal gate.
The gate is used to create a (2^n)x(2^n) matrix with the diagonal elements passed as a list.
class DiagonalGate
: A gate given by a diagonal (2^n)\times(2^n) matrix.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-05-12 UTC.