Skip to main content
Google Quantum AI
Software
  • Tools for quantum computing research and development
  • Learn about our software stack and available resources to help you with your work
  • See all tools
  • Programming framework
  • Cirq
    An open source Python framework and simulators for writing, optimizing, and running quantum programs
  • Computing service
  • Quantum Virtual Machine
    Run your quantum program on a virtual grid on our quantum hardware
  • Libraries and extensions
  • OpenFermion
    The electronic structure package for quantum computers
  • qsim
    Schrödinger and Schrödinger-Feynman simulators for quantum circuits
  • TensorFlow Quantum
    A library for hybrid quantum-classical machine learning
Hardware
  • Overview
  • Our lab
Research
  • Overview
  • Publications
  • Conferences
  • Outreach
  • Diversity
Education Team
  • Overview
  • Careers
/
Sign in
  • qsim
Overview Tutorials Guides Python Reference C++ Reference
Google Quantum AI
  • Software
    • More
    • Overview
    • Tutorials
    • Guides
    • Python Reference
    • C++ Reference
  • Hardware
    • More
  • Research
    • More
  • Education
  • Team
    • More
  • All Symbols
  • qsim
    • Overview
    • Classes
      • BasicGateFuser
      • BasicGateFuser::Parameter
      • CircuitQsimParser
      • Fuser
      • SimulatorAVX
      • SimulatorBasic
      • SimulatorSSE
      • StateSpace
      • StateSpace::MeasurementResult
      • StateSpaceAVX
      • StateSpaceBasic
      • StateSpaceSSE
    • Structs
      • Circuit
      • Gate
      • GateCNot
      • GateCP
      • GateCZ
      • GateFS
      • GateFused
      • GateHd
      • GateHZ2
      • GateId1
      • GateId2
      • GateIS
      • GateRX
      • GateRXY
      • GateRY
      • GateRZ
      • GateS
      • GateSwap
      • GateT
      • GateX
      • GateX2
      • GateY
      • GateY2
      • GateZ
      • HybridSimulator
      • HybridSimulator::HybridData
      • HybridSimulator::Parameter
      • IO
      • IOFile
      • ParallelForT
      • QSimHRunner
      • QSimRunner
      • QSimRunner::Parameter
      • SequentialFor
  • qsim::Cirq
    • Overview
    • Structs
      • CCX
      • CCXPowGate
      • CCZ
      • CCZPowGate
      • CSwapGate
      • CX
      • CXPowGate
      • CZ
      • CZPowGate
      • FSimGate
      • givens
      • H
      • HPowGate
      • I
      • I1
      • I2
      • ISWAP
      • ISwapPowGate
      • MatrixGate
      • MatrixGate1
      • MatrixGate2
      • PhasedISwapPowGate
      • PhasedXPowGate
      • PhasedXZGate
      • riswap
      • rx
      • ry
      • rz
      • S
      • SWAP
      • SwapPowGate
      • T
      • ThreeQubitDiagonalGate
      • TwoQubitDiagonalGate
      • X
      • XPowGate
      • XX
      • XXPowGate
      • Y
      • YPowGate
      • YY
      • YYPowGate
      • Z
      • ZPowGate
      • ZZ
      • ZZPowGate
  • qsim::gate
    • Overview
    • Structs
      • Measurement
  • qsim::unitary
    • Overview
    • Classes
      • UnitaryCalculatorBasic
      • UnitarySpace
    • Structs
      • UnitarySpaceBasic
  • Namespaces
    • qsim::detail
  • Tools for quantum computing research and development
  • See all tools
  • Programming framework
  • Cirq
  • Computing service
  • Quantum Virtual Machine
  • Libraries and extensions
  • OpenFermion
  • qsim
  • TensorFlow Quantum
  • Overview
  • Our lab
  • Overview
  • Publications
  • Conferences
  • Outreach
  • Diversity
  • Overview
  • Careers
  • Google Quantum AI
  • Software
  • qsim
  • C++ Reference

qsim:: Circuit

#include <circuit.h>

A collection of gates.

Summary

This object is consumed by QSim[h]Runner.Run() .

Public attributes

gates
std::vector< Gate >
The set of gates to be run.
num_qubits
unsigned

Public attributes

gates

std::vector< Gate > qsim::Circuit::gates

The set of gates to be run.

Gate times should be ordered.

num_qubits

unsigned qsim::Circuit::num_qubits

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 2021-04-29 UTC.

  • Connect with us

    • Twitter
    • YouTube
Google Developers
  • About Google
  • Google Products
  • Privacy
  • Terms
  • Terms
  • Privacy
  • Manage cookies