Quantum Mechanics# Quantum Functions# Anticommutator AntiCommutator AntiCommutator.doit() Clebsch-Gordan Coefficients CG Wigner3j Wigner6j Wigner9j cg_simp() Commutator Commutator Commutator.doit() Constants HBar Dagger Dagger Inner Product InnerProduct Tensor Product TensorProduct tensor_product_simp() States and Operators# Cartesian Operators and States PositionBra3D PositionKet3D PositionState3D PositionState3D.position_x PositionState3D.position_y PositionState3D.position_z PxBra PxBra.momentum PxKet PxKet.momentum PxOp XBra XBra.position XKet XKet.position XOp YOp ZOp Hilbert Space ComplexSpace DirectSumHilbertSpace DirectSumHilbertSpace.eval() DirectSumHilbertSpace.spaces FockSpace HilbertSpace HilbertSpace.dimension L2 TensorPowerHilbertSpace TensorProductHilbertSpace TensorProductHilbertSpace.eval() TensorProductHilbertSpace.spaces Operator DifferentialOperator DifferentialOperator.expr DifferentialOperator.free_symbols DifferentialOperator.function DifferentialOperator.variables HermitianOperator IdentityOperator Operator OuterProduct OuterProduct.bra OuterProduct.ket UnitaryOperator Operator/State Helper Functions operators_to_state() state_to_operators() Qapply qapply() Represent enumerate_states() get_basis() integrate_result() rep_expectation() rep_innerproduct() represent() Spin J2Op JxBra JxBraCoupled JxKet JxKetCoupled JyBra JyBraCoupled JyKet JyKetCoupled JzBra JzBraCoupled JzKet JzKetCoupled JzOp Rotation Rotation.D() Rotation.d() WignerD couple() uncouple() State Bra BraBase Ket KetBase OrthogonalBra OrthogonalKet OrthogonalState State StateBase StateBase.dual StateBase.dual_class() StateBase.operators TimeDepBra TimeDepKet TimeDepState TimeDepState.label TimeDepState.time Wavefunction Wavefunction.expr Wavefunction.is_commutative Wavefunction.is_normalized Wavefunction.limits Wavefunction.norm Wavefunction.normalize() Wavefunction.prob() Wavefunction.variables Quantum Computation# Circuit Plot CircuitPlot CircuitPlot.control_line() CircuitPlot.control_point() CircuitPlot.not_point() CircuitPlot.one_qubit_box() CircuitPlot.swap_point() CircuitPlot.two_qubit_box() CircuitPlot.update() CreateCGate() Mx Mz circuit_plot() labeller() Gates CGate CGate.controls CGate.decompose() CGate.eval_controls() CGate.gate CGate.min_qubits CGate.nqubits CGate.plot_gate() CGate.targets CGateS CNOT CNotGate CNotGate.controls CNotGate.gate CNotGate.min_qubits CNotGate.targets Gate Gate.get_target_matrix() Gate.min_qubits Gate.nqubits Gate.targets H HadamardGate IdentityGate OneQubitGate Phase PhaseGate S SWAP SwapGate SwapGate.decompose() T TGate TwoQubitGate UGate UGate.get_target_matrix() UGate.targets X XGate Y YGate Z ZGate gate_simp() gate_sort() normalized() random_circuit() Grover’s Algorithm OracleGate OracleGate.search_function OracleGate.targets WGate apply_grover() grover_iteration() superposition_basis() QFT IQFT IQFT.decompose() QFT QFT.decompose() Rk RkGate Qubit IntQubit IntQubitBra Qubit QubitBra matrix_to_density() matrix_to_qubit() measure_all() measure_all_oneshot() measure_partial() measure_partial_oneshot() qubit_to_matrix() Shor’s Algorithm CMod CMod.N CMod.a CMod.t period_find() shor() Analytic Solutions# Particle in a Box PIABBra PIABHamiltonian PIABKet